Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html make a cube

<canvas id="myCanvas">Your browser doesn't support the canvas tag :(</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000"; // Color of cube
ctx.fillRect(0, 0, 50, 50);
</script>
 
PREVIOUS NEXT
Tagged: #html #cube
ADD COMMENT
Topic
Name
5+2 =