Mandelbrot mit JSXGraph
Aus Wiki1
(Unterschied zwischen Versionen)
Zeile 17: | Zeile 17: | ||
const div = document.getElementById('jxgbox'); | const div = document.getElementById('jxgbox'); | ||
const canvas = document.createElement('canvas'); | const canvas = document.createElement('canvas'); | ||
- | canvas.width = | + | canvas.width = 600; |
canvas.height = 400; | canvas.height = 400; | ||
canvas.style.position = 'absolute'; | canvas.style.position = 'absolute'; | ||
- | canvas.style.left = " | + | canvas.style.left = "100px"; |
- | canvas.style.top = " | + | canvas.style.top = "100px"; |
div.appendChild(canvas); | div.appendChild(canvas); | ||
const ctx = canvas.getContext('2d'); | const ctx = canvas.getContext('2d'); |