Drawing

NodeDescriptionInputsOutputs
ellipseDraws a filled or stroked ellipse.image Image, cx Number, cy Number, rx Number, ry Number, color Text, mode Text, thickness Numberimage Image
fontsLists available fonts from the system and bundled set.filter Textfonts Json
htmlRenders HTML, CSS, and JavaScript to an image. Evaluated by the frontend webview.html Text, css Text, js Text, fonts Text, data Json, width Number, height Number, delay Numberimage Image
lineDraws a line between two points.image Image, x1 Number, y1 Number, x2 Number, y2 Number, color Text, thickness Number, antialias Booleanimage Image
overlayComposites one image on top of another with alpha blending.base Image, overlay Image, x Number, y Numberimage Image
rectangleDraws a filled or stroked rectangle.image Image, x Number, y Number, width Number, height Number, color Text, mode Text, thickness Numberimage Image
textRenders text onto an image.image Image, text Text, x Number, y Number, size Number, color Text, font Text, align Textimage Image
text_measureReturns pixel dimensions text would occupy.text Text, size Number, font Textwidth Number, height Number

ellipse

Draws a filled or stroked ellipse.

Inputs:

Output: image (Image) — image with ellipse drawn

See also: rectangle, line, image/canvas

fonts

Lists available fonts from the system and bundled set.

Inputs:

Output: fonts (Json) — array of {name, path, source} objects

See also: text

html

Renders HTML, CSS, and JavaScript to an image. Evaluated by the frontend webview.

Inputs:

Output: image (Image) — rendered image with transparency

See also: rectangle, text, image/canvas

line

Draws a line between two points.

Inputs:

Output: image (Image) — image with line drawn

See also: rectangle, ellipse

overlay

Composites one image on top of another with alpha blending.

Inputs:

Output: image (Image) — composited image

See also: image/canvas, text

rectangle

Draws a filled or stroked rectangle.

Inputs:

Output: image (Image) — image with rectangle drawn

See also: ellipse, line

text

Renders text onto an image.

Inputs:

Output: image (Image) — image with text rendered

See also: text_measure, fonts

text_measure

Returns pixel dimensions text would occupy.

Inputs:

Outputs:

See also: text, fonts