Difference between revisions of "Canvas Element"

From Level Access Web Labs
Jump to navigation Jump to search
(Created page with "<html> <canvas id="myCanvas"></canvas> <script> var canvas=document.getElementById('myCanvas'); var ctx=canvas.getContext('2d'); ctx.fillStyle='#00FF00'; ctx.fillRect(0,0,90,...")
 
Line 1: Line 1:
 
<html>
 
<html>
<canvas id="myCanvas"></canvas>
+
<canvas id="myCanvas">
 +
<p>There is a green box on the screen.</p>
 +
</canvas>
  
 
<script>
 
<script>

Revision as of 18:45, 26 March 2014

There is a green box on the screen.