JavaScript -Kontextfarbe
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
Bright Badger
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
// Syntax:
ctx.fillStyle = yourColor;
ctx.fillRect(x, y, width, height);
// it's the same syntax for strokeStyle and strokeRect