Line 6: | Line 6: | ||
− | <script | + | <script> |
+ | var canvas = document.getElementById("myCanvas"); | ||
+ | var ctx = canvas.getContext("2d"); | ||
+ | ctx.fillStyle = "#FF0000"; | ||
+ | ctx.fillRect(0,0,150,75); | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 02:07, 1 November 2017