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