Last active
August 29, 2015 14:15
-
-
Save michaelrepper/b43e96437ae1dd4a52de to your computer and use it in GitHub Desktop.
r/Dailyprogrammer Challenge #203 Easy - Draw a Square
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Live HTML Preview of this Gist: | |
http://htmlpreview.github.io/?https://rawgit.com/michaelrepper/b43e96437ae1dd4a52de/raw/c885090215bd15740f1748d2912cd7e458c87c97/rdp_203_easy.htm | |
--> | |
<title></title> | |
</head> | |
<body> | |
<canvas id="canvas_1"></canvas> | |
<script> | |
(function (){ | |
var canvas = document.getElementById("canvas_1"); | |
var context = canvas.getContext('2d'); | |
context.fillRect(0, 0, 100, 100); | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment