Skip to content
menu_book Function Reference

Documentation

Complete reference for every BDFD function — syntax, parameter types, enum values, and practical examples.

search
palette

Image & Canvas

(15 functions)
$attachImage[name]

Finalizes the current canvas block, renders all queued operations, and registers the resulting image as a message att...

attachImage arrow_forward
$canvasChartBar[x;y;width;height;data;colors;labels?;maxValue?;barSpacing?;container?]

Draws a bar chart with automatic scaling and configurable bar spacing

canvasChartBar arrow_forward
$canvasChartLine[x;y;width;height;data;color;lineWidth?;fill?;showPoints?;pointRadius?;container?]

Draws a line chart with optional area fill and data point markers

canvasChartLine arrow_forward
$canvasChartPie[x;y;radius;data;colors;labels?;startAngle?;container?]

Draws a pie chart from semicolon-separated data values with automatic color palette fallback

canvasChartPie arrow_forward
$canvasCompositeImage[url;x;y;width;height;shape?;blend?;container?]

Overlays an external image at the given position with optional shape masking and blend modes

canvasCompositeImage arrow_forward
$canvasContainer[name;x;y;width;height;color?]

Defines a named positioning frame. Subsequent canvas operations referencing this container via their `container` para...

canvasContainer arrow_forward
$canvasCreate[name;width;height;color?]

Creates a blank canvas with the given dimensions and optional background color

canvasCreate arrow_forward
$canvasDrawArc[x;y;radius;startAngle;endAngle;color;fill?;thickness?;container?]

Draws an arc (outline) or pie slice (filled) using angle parameters in degrees

canvasDrawArc arrow_forward
$canvasDrawCircle[x;y;radius;color;fill;blend?;container?]

Draws a circle (filled or outlined) with optional blend mode support

canvasDrawCircle arrow_forward
$canvasDrawLine[x1;y1;x2;y2;color;thickness;blend?;container?]

Draws a line between two points using Bresenham's algorithm with configurable thickness

canvasDrawLine arrow_forward
$canvasDrawRect[x;y;width;height;color;fill;blend?;container?]

Draws a rectangle (filled or outline only) with optional blend mode

canvasDrawRect arrow_forward
$canvasDrawRoundedRect[x;y;width;height;radius;color;fill;blend?;container?]

Draws a rectangle with rounded corners — filled or outline

canvasDrawRoundedRect arrow_forward
$canvasDrawText[text;x;y;fontSize;color;textAlign?;maxWidth?;container?]

Draws text on the canvas at the specified position with configurable font size, color, and alignment

canvasDrawText arrow_forward
$canvasLoadImage[url;x?;y?;width?;height?;container?]

Loads an image from a URL, data URL, or base64 string onto the canvas

canvasLoadImage arrow_forward
$canvasProgressBar[x;y;width;height;value;fillColor;bgColor?;borderColor?;borderWidth?;direction?;borderRadius?;container?]

Draws a progress bar (horizontal or vertical) with background, fill, and optional border

canvasProgressBar arrow_forward

Need the product first?

Install Bot Creator, then use the docs to build your commands.

The function reference pairs with the visual editor — every function here is available in the BDFD script panel.