Skip to content
mohayonao edited this page Aug 11, 2014 · 8 revisions

circle

Draws a circle to the canvas.

Examples

canvas.stroke(9).noFill()
  .circle(50, 50, 40);

canvas.noStroke().fill([ 2, 10, 6 ])
  .circle(150, 50, 40);

canvas.stroke(11).fill(3)
  .circle(250, 50, 40);

Syntax

canvas.circle(cx, cy, r);

Parameters

  • cx: int
    • x-coordinate of the circle
  • cy: int
    • y-coordinate of the circle
  • r: int
    • radius of the circle

Returns

Canvas: self for method chaining

Related