arc ( x y r a0 ax div )
publication: 23 mars 2023 / mis à jour 28 novembre 2023
vocabulaire: web
Trace un arc de cercle centré en x y, de rayon r, tracé de l'angle a0 jusqu'à l'angle ax. Les valeurs d'angle sont divisées par div.
Exemple:
web definitions
JSWORD: arc { x y r a0 ax div }
context.ctx.arc(x, y, r, (Math.PI * 2 * a0) / div, (Math.PI * 2 * ax) / div);
~
forth definitions
600 constant ctxWidth
300 constant ctxHeight
$ff0000 constant fullRed
web gr
ctxWidth ctxHeight window
fullRed color!
beginPath 100 100 60 0 90 360 arc stroke
beginPath 100 100 70 90 180 360 arc stroke
beginPath 100 100 80 180 270 360 arc stroke
beginPath 100 100 90 270 360 360 arc stroke
Legal: site web personnel sans commerce / personal site without seling
