Ellipse

extends: Primitive

description

class for displaying simple circles or ovals.

new Ellipse(x, y, w, h, col, obj?)

x : number
x-coordinate of the ellipse.

y : number
y-coordinate of the ellipse.

w : number
width of the ellipse.

h : number
height of the ellipse.

col : string
the color of the ellipse (e.g. "#ea323c").

obj? : object
an object with which to call set ( ) on the ellipse as it is created.

properties

col
as described above.

path
a Path2D defining the ellipse.