Skip to main content

TextNode

Renders editable text with font options.

Example

const text = engine.nodes.addText({
x: 400,
y: 320,
text: 'Flowscape',
fontSize: 28,
fontFamily: 'Arial',
fill: '#fff',
});

text.getNode().draggable(true);