Image & Canvas
drawImage
$drawImage — Draws an image (a name from $loadImage or a source) on a canvas, with an optional corner radius.
Draws an image (a name from $loadImage or a source) on a canvas, with an optional corner radius.
Syntax
$drawImage[(canvas);src;x;y;(width);(height);(radius)]
Parameters
- canvas (String, optional) — Canvas name (empty: the current canvas)
- src (String, required) — Image name or source
- x (Number, required) — X
- y (Number, required) — Y
- width (Number, optional) — Width
- height (Number, optional) — Height
- radius (Number, optional) — Corner radius
Return Value
- None.
Usage
$drawImage[canvas;src;x;y;width;height;radius] → result
Example
$sendMessage[$drawImage[canvas;src;x;y;width;height;radius]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.