Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript fillStyle

// Syntax:
ctx.fillStyle = yourColor;
ctx.fillRect(x, y, width, height);

// it's the same syntax for strokeStyle and strokeRect
 
PREVIOUS NEXT
Tagged: #javascript #fillStyle
ADD COMMENT
Topic
Name
3+8 =