Sign In

$drawRect[]

Draws a rectangle on a canvas

v1.0.0+ Requires Brackets

Usage

$drawRect[;;;;;;;]
Also callable as
$placeRect $rectangle $rect

Arguments

NameTypeRequiredDescription
canvas
StringNoName of the canvas
type
YesThe rectangle type
style
StringNoThe style. (color/gradient/pattern)
x
NumberYesThe rect start X coordinate
y
NumberYesThe rect start Y coordinate
width
NumberYesThe rect width
height
NumberYesThe rect height
...radius
NumberNoThe rect radius

Was this page helpful?