Drawing
| Node | Description | Inputs | Outputs |
|---|---|---|---|
| ellipse | Draws a filled or stroked ellipse. | image Image, cx Number, cy Number, rx Number, ry Number, color Text, mode Text, thickness Number | image Image |
| fonts | Lists available fonts from the system and bundled set. | filter Text | fonts Json |
| html | Renders 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 Number | image Image |
| line | Draws a line between two points. | image Image, x1 Number, y1 Number, x2 Number, y2 Number, color Text, thickness Number, antialias Boolean | image Image |
| overlay | Composites one image on top of another with alpha blending. | base Image, overlay Image, x Number, y Number | image Image |
| rectangle | Draws a filled or stroked rectangle. | image Image, x Number, y Number, width Number, height Number, color Text, mode Text, thickness Number | image Image |
| text | Renders text onto an image. | image Image, text Text, x Number, y Number, size Number, color Text, font Text, align Text | image Image |
| text_measure | Returns pixel dimensions text would occupy. | text Text, size Number, font Text | width Number, height Number |
ellipse
Draws a filled or stroked ellipse.
Inputs:
image(Image) — source imagecx(Number) — center x coordinatecy(Number) — center y coordinaterx(Number) — horizontal radiusry(Number) — vertical radiuscolor(Text) — fill or stroke color as hexmode(Text) — fill or strokethickness(Number) — stroke width when mode is stroke
Output: image (Image) — image with ellipse drawn
See also: rectangle, line, image/canvas
fonts
Lists available fonts from the system and bundled set.
Inputs:
filter(Text) — case-insensitive name filter
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:
html(Text) — HTML markup to rendercss(Text) — CSS stylesheetjs(Text) — JavaScript to execute before capturefonts(Text) — Google Font families, comma-separateddata(Json) — data injected as a globaldatavariable in JSwidth(Number) — output width — 0 trims transparent pixelsheight(Number) — output height — 0 trims transparent pixelsdelay(Number) — milliseconds to wait before capture
Output: image (Image) — rendered image with transparency
See also: rectangle, text, image/canvas
line
Draws a line between two points.
Inputs:
image(Image) — source imagex1(Number) — start xy1(Number) — start yx2(Number) — end xy2(Number) — end ycolor(Text) — line color as hexthickness(Number) — line width in pixelsantialias(Boolean) — enable edge smoothing
Output: image (Image) — image with line drawn
overlay
Composites one image on top of another with alpha blending.
Inputs:
base(Image) — background imageoverlay(Image) — image to composite on topx(Number) — overlay x offsety(Number) — overlay y offset
Output: image (Image) — composited image
See also: image/canvas, text
rectangle
Draws a filled or stroked rectangle.
Inputs:
image(Image) — source imagex(Number) — left x coordinatey(Number) — top y coordinatewidth(Number) — rectangle widthheight(Number) — rectangle heightcolor(Text) — fill or stroke color as hexmode(Text) — fill or strokethickness(Number) — stroke width when mode is stroke
Output: image (Image) — image with rectangle drawn
text
Renders text onto an image.
Inputs:
image(Image) — source imagetext(Text) — text to renderx(Number) — x coordinatey(Number) — y coordinatesize(Number) — font size in pixelscolor(Text) — text color as hexfont(Text) — bundled name or file pathalign(Text) — left, center, or right
Output: image (Image) — image with text rendered
See also: text_measure, fonts
text_measure
Returns pixel dimensions text would occupy.
Inputs:
text(Text) — text to measuresize(Number) — font size in pixelsfont(Text) — bundled name or file path
Outputs:
width(Number) — text width in pixelsheight(Number) — text height in pixels