0

Issues With Canvas

Greetings everyone! Can someone tell me what wrong with the following code? I tried other ways as well, but it won't generate anything. This code look completely fine to me, but I'm new to Canvas, so I might be missing something.

7th Jan 2022, 6:53 PM
Vasilis Karapas
Vasilis Karapas - avatar
4 Answers
+ 4
Vasilis Karapas , use fillStyle instead of strokeStyle property. Also your coordinates are wrong. Look at the code. https://code.sololearn.com/W4rp95A6LJxW/?ref=app
7th Jan 2022, 7:37 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
https://code.sololearn.com/WJ88hmWI17x7/?ref=app
7th Jan 2022, 6:55 PM
Vasilis Karapas
Vasilis Karapas - avatar
0
Oops, yeah, it was definitely the coordinates. Thank you for your help!
7th Jan 2022, 7:46 PM
Vasilis Karapas
Vasilis Karapas - avatar
0
Vasilis Karapas , you are welcome.
7th Jan 2022, 8:05 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar