OptionalxLeft: numberOptionalxRight: numberOptionalyBottom: numberOptionalyTop: numberRGBA from 0-1
Optional_aka high quality pen.
StaticpowerOptionalmask: [number, number, number]Get the "candidate bounding box" to use for "touching" queries.
The rectangle, or null if the drawable is offscreen or has no skin.
Optionalmode: OverlayModeOptionalbitmapResolution: BitmapResolutionOptionalrotationCenter: [number, number]Renders the stage on the canvas.
Determine if a drawable is touching a point.
ID of the target drawable
X coordinate in client space
Y coordinate in client space
Optionalwidth: numberDefaults to 1
Optionalheight: numberDefaults to 1
Enter a drawing region.
Any arbitrary unique object.
Optionalenter: FunctionCalled when entering the drawing region (which is what this function does). Defaults to regionId.enter.
Optionalexit: 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
Optionalmask: [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
OptionalcandidateIds: 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
Optionalwidth: numberDefaults to 1
Optionalheight: numberDefaults to 1
OptionalcandidateIds: number[]Defaults to all drawables
The ID of the top-most drawable, or -1 if there is none. (TW: returns false instead of -1 in Scratch)
Red from 0-1
Green from 0-1
Blue from 0-1
Optionalalpha: numberAlpha from 0-1, defaults to 1. (from TW)
OptionalbitmapResolution: BitmapResolutionOptionalrotationCenter: [number, number]Static_If 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.
StaticisOptionalcanvas: HTMLCanvasElement
RGB from 0-255