write

MJS / AC Piece API / graphics / done
write(text, pos, b, bounds, wordWrap)

Render text into the current painting using current ink, font, and optional bounds.

Parameters

Name Type Required Description
text string yes Text content to draw.
pos object | number no Position or anchor object.
bounds object no Optional clipping/wrapping bounds.

Returns

painting | metrics

Examples

Open prompt ยท Permalink

Runtime Notes

No additional runtime notes yet.

Details

No additional details yet.

Live Preview

Embedded AC preview