Canvas Drawing HTML

 <html>

<head>


<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Exercise Drawing on A Canvas </title>

</head>


<body>

<canvas id="MyCanvas" width="1080" Height="720" 

style="border:1px solid #4f1802 ;">

Molina

</canvas>


<script>

var canvas = document.getElementById("MyCanvas");

var ctx = canvas.getContext("2d");

ctx.globalAlpha = 1

ctx.fillStyle = "#a6471e";

ctx.fillRect(500,110,280,350);

ctx.fillStyle = "#fac087";

ctx.fillRect(480,100,230,300);

ctx.fillStyle = "#17fc03";

ctx.fillRect(500,50,300,50);


</script>






Comments

Popular posts from this blog

Animation Transition Activity

Adding A Youtube Link Embed

let's talk about Sketches