The width of the drawing.
The height of the drawing.
Copies the provided buffer to the canvas
Clears buffers using provided material color values Ignores material blend modes and texture settings
material to clear to
Get Framebuffer with name.
Strokes a provided path as configured in options
array of points [[0,0],[1,1],...]
ILineOptions
Loads an image from a file and creates a texture for the image.
const t = await smudge.loadTexture("images/a.png");
path to image to load
clears target to clear_color
, then copies/swizzles
colors from the channel buffers according to packing_layout
targets smudge.canvas or provided targetBuffer
how values should be packed
the intial color value
the buffer to copy to, defaults to smudge.canvas
Saves current canvas to as download file.
name of download
Generated using TypeDoc
Creates the smudge instace.