OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <canvas width="200" height="200"></canvas> | |
5 <script> | |
6 var canvas = document.querySelector("canvas"); | |
tkent
2014/06/30 22:59:46
Please do not indent the whole content of <script>
zino
2014/07/01 10:12:11
Done.
| |
7 var context = canvas.getContext("2d"); | |
8 context.fillStyle = "red"; | |
9 context.fillRect(0, 0, 200, 200); | |
10 </script> | |
11 </body> | |
12 </html> | |
OLD | NEW |