Answers for "what can we do with html canvas"

8

javascript canvas

<canvas id="canvas"></canvas>
<script>

	var canvas = document.getElementById('canvas');
    var ctx = canvas.getContext('2d');
  
	ctx.beginPath();
	ctx.rect(x, y, width, height);
  	ctx.fillStyle = 'limegreen';
  	ctx.fill();
  
  	ctx.beginPath();
  	ctx.arc(x, y, radius, startAngle, endAngle, counterClockWise(optional));
  	ctx.strokeStyle = 'black';
  	ctx.stroke();

</script>
Posted by: Guest on September-11-2020
0

html css canvas

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
</canvas>
Posted by: Guest on March-21-2021

Code answers related to "what can we do with html canvas"

Browse Popular Code Answers by Language