Difference between revisions of "Team:Cologne-Duesseldorf/Test3"

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 = "#FF0000";
+
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

Your browser does not support the canvas element.