Skip to content

$fillText

Draw text.

Usage

$fillText[canvas;text;style?;font;x;y;maxWidth?;align?;baseline?]

Parameters

FieldDescriptionTypeRequired
canvasThe canvas name.stringtrue
textThe text.stringtrue
styleThe text style.color | gradientfalse
fontThe text font.fonttrue
xThe text X position.numbertrue
yThe text Y position.numbertrue
maxWidthThe text max width.numberfalse
alignThe text align.stringfalse
baselineThe text baseline.stringfalse