fastest way to fill a rectangle in vanilla javascript code example
Example 1: js canvas fill color
// canvas context.fillStyle = "Color"
ctx.fillStyle = "#FF0000";
Example 2: javascript fill circle with color
context.beginPath();
context.arc(centerX, centerY, radius, 0, 2 * Math.PI, false);
context.fillStyle = 'green';
context.fill();
context.lineWidth = 5;
context.strokeStyle = '#003300';
context.stroke()