Typeface.drawLine

Draw a line of text. Note: This API is unstable and might change over time.

interface Typeface
const
void
drawLine

Parameters

target Image

Image to draw to.

penPosition Vector2

Pen position for the beginning of the line. Updated to the pen position at the end of th line.

text Rope

Text to draw.

paletteIndex ubyte

If the image has a palette, this is the index to get colors from.

Meta