Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script type="text/javascript"> |
michael@0 | 4 | window.onload = function() { |
michael@0 | 5 | var ctx = document.getElementById("c1").getContext("2d"); |
michael@0 | 6 | |
michael@0 | 7 | ctx.moveTo(50, 50); |
michael@0 | 8 | ctx.lineTo(250, 50); |
michael@0 | 9 | ctx.lineTo(250, 250); |
michael@0 | 10 | ctx.lineTo(50, 250); |
michael@0 | 11 | ctx.lineTo(50, 50); |
michael@0 | 12 | |
michael@0 | 13 | ctx.moveTo(100, 100); |
michael@0 | 14 | ctx.lineTo(100, 200); |
michael@0 | 15 | ctx.lineTo(200, 200); |
michael@0 | 16 | ctx.lineTo(200, 100); |
michael@0 | 17 | ctx.lineTo(100, 100); |
michael@0 | 18 | |
michael@0 | 19 | ctx.fill(); |
michael@0 | 20 | } |
michael@0 | 21 | </script> |
michael@0 | 22 | </head> |
michael@0 | 23 | <body> |
michael@0 | 24 | <div><canvas id="c1" width="300" height="300"></canvas></div> |
michael@0 | 25 | </body> |
michael@0 | 26 | </html> |