Skip to content

Instantly share code, notes, and snippets.

@michaelrepper
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelrepper/b43e96437ae1dd4a52de to your computer and use it in GitHub Desktop.
Save michaelrepper/b43e96437ae1dd4a52de to your computer and use it in GitHub Desktop.
r/Dailyprogrammer Challenge #203 Easy - Draw a Square
<!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