TESTER

canvas

canvas([width=640], [height=480], [ratio], [background=#FFFFFF], [center=false])

Initialize the drawing canvas with optional dimensions, background color, and center mode

Arguments

NameRequiredDefaultDescription
width-640Width of the canvas in pixels
height-480Height of the canvas in pixels
ratio--Aspect ratio (calculated if width or height is missing)
background-#FFFFFFBackground color (hex string)
center-falseTranslate coords to center