New course! Every coder should learn Generative AI!
Try a free lesson0
How to set the color of a canvas tag with css
See title. I tried using the color attribute but it didn't work. Any answer is appreciated.
2 Answers
0
'color: ' is use for font color. 'background-color: ' is used for things that are not text.
+ 3
It's only the background-color attribute that can be used in css for canvas.