Rect
extends: Primitive
description
class for displaying simple squares or rectangles.
new Rect(x, y, w, h, col, obj?)
x : number
x-coordinate of the rect.
y : number
y-coordinate of the rect.
w : number
width of the rect.
h : number
height of the rect.
col : string
the color of the rect (e.g. "#ea323c"
).
obj? : object
an object with which to call set ( ) on the rect as it is created.
properties
col
as described above.
path
a Path2D
defining the rect.