Skip to content

$clearRect

Erases pixels in a rect area.

Usage

$clearRect[canvas;x;y;width;height;radius?]

Parameters

FieldDescriptionTypeRequired
canvasThe canvas name.stringtrue
xThe rect X position.numberfalse
yThe rect Y position.numberfalse
widthThe rect width.numbertrue
heightThe rect height.numbertrue
radiusThe rect corners radius.number | arrayfalse