painting

MJS / AC Piece API / graphics / done
painting(width, height, callback) or painting(width, height)

Create an offscreen painting buffer, optionally drawing into it via callback.

Parameters

Name Type Required Description
width, height number yes Buffer dimensions.
callback function no Draw callback receiving a paint API.

Returns

painting

Examples

No explicit examples yet.

Open prompt to experiment live.

Runtime Notes

No additional runtime notes yet.

Details

No additional details yet.

Live Preview

Embedded AC preview