fill - method of the CanvasCtx object
Description:
Fills the current drawing path.
Example:
The
ctx variable represents the drawing canvas (
CanvasCtx). The setup is done on the "
Draw" tab at the beginning of the script of drawing event
onDraw as follows:
var ctx =
pEvent.
GetCtx(1);
JavaScriptSelect and copy to clipboard
ctx.beginPath();
ctx.fillStyle = "blue";
ctx.rect(50, 50, 150, 80);
ctx.fill();