Skip to content

Instantly share code, notes, and snippets.

@Drvanon
Created September 5, 2012 13:04
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 Drvanon/3636247 to your computer and use it in GitHub Desktop.
Save Drvanon/3636247 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title> Main </title>
<link href="/static/.css" rel="stylesheet" type="text/css"></link>
<link href='http://fonts.googleapis.com/css?family=Cantora+One' rel='stylesheet' type='text/css'>
<script>
window.onload = function() {
var canvas = document.getElementById("country");
var context = canvas.getContext("2d")
var lines = [
[ 0 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -2 * 20 + 400 , 1 * 20 + 400 ],
[ -3 * 20 + 400 , 1 * 20 + 400 ],
[ -3 * 20 + 400 , 0 * 20 + 400 ],
[ -4 * 20 + 400 , 0 * 20 + 400 ],
[ -3 * 20 + 400 , 0 * 20 + 400 ],
[ -3 * 20 + 400 , -1 * 20 + 400 ],
[ -4 * 20 + 400 , -1 * 20 + 400 ],
[ -4 * 20 + 400 , -2 * 20 + 400 ],
[ -5 * 20 + 400 , -2 * 20 + 400 ],
[ -4 * 20 + 400 , -2 * 20 + 400 ],
[ -5 * 20 + 400 , -2 * 20 + 400 ],
[ -5 * 20 + 400 , -3 * 20 + 400 ],
[ -6 * 20 + 400 , -3 * 20 + 400 ],
[ -5 * 20 + 400 , -3 * 20 + 400 ],
[ -4 * 20 + 400 , -3 * 20 + 400 ],
[ -3 * 20 + 400 , -3 * 20 + 400 ],
[ -3 * 20 + 400 , -2 * 20 + 400 ],
[ -2 * 20 + 400 , -2 * 20 + 400 ],
[ 0 * 20 + 400 , 0 * 20 + 400 ],
[ 0 * 20 + 400 , -1 * 20 + 400 ],
[ 0 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ 0 * 20 + 400 , 0 * 20 + 400 ],
[ 0 * 20 + 400 , 1 * 20 + 400 ],
[ 0 * 20 + 400 , 0 * 20 + 400 ],
[ 0 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -2 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 2 * 20 + 400 ],
[ -2 * 20 + 400 , 2 * 20 + 400 ],
[ -2 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -2 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -2 * 20 + 400 , 0 * 20 + 400 ],
[ -2 * 20 + 400 , 1 * 20 + 400 ],
[ -2 * 20 + 400 , 0 * 20 + 400 ],
[ 0 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -1 * 20 + 400 , 0 * 20 + 400 ],
[ -1 * 20 + 400 , 1 * 20 + 400 ],
[ -2 * 20 + 400 , 1 * 20 + 400 ],
[ -2 * 20 + 400 , 2 * 20 + 400 ],
[ -3 * 20 + 400 , 2 * 20 + 400 ],
[ -3 * 20 + 400 , 3 * 20 + 400 ],
[ -4 * 20 + 400 , 3 * 20 + 400 ],
[ -4 * 20 + 400 , 2 * 20 + 400 ],
[ -4 * 20 + 400 , 3 * 20 + 400 ],
[ -3 * 20 + 400 , 3 * 20 + 400 ],
[ -3 * 20 + 400 , 2 * 20 + 400 ],
[ -3 * 20 + 400 , 3 * 20 + 400 ],
[ -3 * 20 + 400 , 2 * 20 + 400 ],
[ -3 * 20 + 400 , 1 * 20 + 400 ],
];
context.beginPath();
context.moveTo(0, 0);
for(var n = 0; n < lines.length; n++) {
context.lineTo(lines[i][0], lines[i][1]);
};
context.stroke();
};
</script>
</head>
<body>
<div id="All">
<h1>Main</h1>
<p>Youre at the Main!</p>
<canvas id="country" width=750 height=600></canvas>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment