fill - method of object CanvasCtx
Fills the current drawing path.
The method can also be called in the graphic item events for Web panels
variable represents the drawing canvas (CanvasCtx
). The setup is done on Draw
page at the beginning of the script of drawing event onDraw
ctx.fillStyle = "blue";
ctx.rect(50, 50, 150, 80);