Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!docytpe html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta charset="UTF-8" /> |
michael@0 | 5 | <script> |
michael@0 | 6 | window.onload=function(){ |
michael@0 | 7 | |
michael@0 | 8 | var c=document.getElementById("myCanvas").getContext("2d"); |
michael@0 | 9 | |
michael@0 | 10 | c.font="35px sans-serif"; |
michael@0 | 11 | |
michael@0 | 12 | c.shadowBlur=60; |
michael@0 | 13 | c.shadowColor="blue"; |
michael@0 | 14 | |
michael@0 | 15 | c.fillText("ABCDEFG",100,100); |
michael@0 | 16 | |
michael@0 | 17 | |
michael@0 | 18 | |
michael@0 | 19 | } |
michael@0 | 20 | </script> |
michael@0 | 21 | </head> |
michael@0 | 22 | <body> |
michael@0 | 23 | <canvas id="myCanvas" height=400 width=400 style="border:1px solid black"></canvas> |
michael@0 | 24 | </body> |
michael@0 | 25 | </html> |