- Learn to write a canva tag in your html page.
<div class=”container-fluid”><canvas class=”img-fluid” id=”mycanvas”></canvas></div>
- Understand how to draw arc and lines. Just look at the codes below
ctx.beginPath();ctx.arc(100,200,50,0,2*Math.PI);ctx.stroke();
- Learn how to draw a polygons using canvas
ctx.beginPath();ctx.moveTo(1000,500);ctx.lineTo(800,Math.random()*1000);ctx.lineTo(1200,Math.random()*1000);ctx.closePath();ctx.fillStyle=randomizeColorCode();ctx.fill();
- Learn how to insert an image
- Learn how to move the canvas, translation and rotation
- Learn how to create a simple project using Canvas.
