0

Does anyone relize that in HTML5 canvas that the this code makes a square?

var c=document.getElementById("canvas1"); var ctx=c.getContext("2d"); ctx.fillRect(20,20,100,100); this code was provided by the publisher on HTML HTML5 Canvas?

7th May 2018, 6:49 PM
Busch Brock
Busch Brock - avatar
2 Answers
+ 1
well you can see that on my code https://code.sololearn.com/WA2oSg6Umk55/?ref=app
7th May 2018, 6:57 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
Thank you Sudarshan Rai. Mine looks nothing like that.
14th Feb 2020, 7:23 PM
Busch Brock
Busch Brock - avatar