Optional
xLeft: numberOptional
xRight: numberOptional
yBottom: numberOptional
yTop: numberRGBA from 0-1
Optional
_debugaka high quality pen.
Static
powerOptional
mask: [number, number, number]Optional
mode: OverlayModeOptional
bitmapResolution: BitmapResolutionOptional
rotationCenter: [number, number]Determine if a drawable is touching a point.
ID of the target drawable
X coordinate in client space
Y coordinate in client space
Optional
width: numberDefaults to 1
Optional
height: numberDefaults to 1
Enter a drawing region.
Any arbitrary unique object.
Optional
enter: FunctionCalled when entering the drawing region (which is what this function does). Defaults to regionId.enter.
Optional
exit: FunctionCalled when leaving the drawing region. Defaults to regionId.exit.
X coordinate in client space
Y coordinate in client space
"Radius" of the square, in pixels
Data about the pixels in a square around the coordinates. Color channels are RGBA from 0-255
Determine if a drawable is touching a color or if a certain color of the drawable is touching a color.
RGB color from 0-255
Optional
mask: [number, number, number]RGB color from 0-255. Used by "is color touching color" block.
Determine if a drawable is intersecting a set of other drawables.
ID of the target drawable
Optional
candidateIds: number[]The IDs of the drawables to test for collision with the target drawable. Defaults to all drawables.
Determine the top-most drawable at a point.
X coordinate in client space
Y coordinate in client space
Optional
width: numberDefaults to 1
Optional
height: numberDefaults to 1
Optional
candidateIds: number[]Defaults to all drawables
The ID of the top-most drawable, or -1 or false if there is none.
Optional
bitmapResolution: BitmapResolutionOptional
rotationCenter: [number, number]Static
_getIf WebGL 1 is supported, returns a WebGL 1 context. If WebGL 1 is not supported but WebGL 2 is supported, returns a WebGL 2 context. Otherwise, returns null.
Static
isStatic
sample
RGB from 0-255