¿Por qué me arroja error en canvas.getContext("2d"); ? ¿Cómo corrijo mi código? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

¿Por qué me arroja error en canvas.getContext("2d"); ? ¿Cómo corrijo mi código?

https://code.sololearn.com/WKN2iwluXx6T/?ref=app

16th Jun 2022, 10:01 PM
Sebastián Ramirez Schilling
1 Answer
+ 1
// Math.PI with capital I // needs ctx.fill() for blue function circulo(){ ctx.lineWidth = 3; ctx.fillStyle = "blue"; ctx.beginPath(); ctx.arc(150, 150, 150, 0, 2*Math.PI, true); ctx.fill(); }
17th Jun 2022, 1:55 AM
JaScript
JaScript - avatar