Hello, I have a canvas code but there is a problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello, I have a canvas code but there is a problem

My code always puts the same color in the circle but I don't want that, I want them to be different https://code.sololearn.com/WIeA4ugbM7Vm/?ref=app

25th Feb 2023, 5:30 PM
Daniel 😊😎😉[JS Challenger]
Daniel 😊😎😉[JS Challenger] - avatar
3 Answers
+ 4
I added some comments in the JS. I think you need to close the paths properly. https://code.sololearn.com/Wo17GcIw0z56/?ref=app
25th Feb 2023, 5:58 PM
Lisa
Lisa - avatar
0
With fillRect() works? What?
25th Feb 2023, 5:38 PM
Daniel 😊😎😉[JS Challenger]
Daniel 😊😎😉[JS Challenger] - avatar
0
Mirielle beginPath() no behinPath() and closePath() no closepath()
27th Feb 2023, 2:05 PM
Daniel 😊😎😉[JS Challenger]
Daniel 😊😎😉[JS Challenger] - avatar