I have tried the function up and down writing it. Tried using different colors. Any more suggestion? Refer to the screenshot picture of my codes and output.
After the fillStyle you need to append a new line with following code.
ctx.fillStyle = 'green'; ctx.fillRect(200, 100, 200, 200);
1.4m articles
1.4m replys
5 comments
56.9k users