Skip to content

Instantly share code, notes, and snippets.

@kashimAstro
Last active November 8, 2016 15:58
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 kashimAstro/9d44a76de73157b11bf653051ee89fba to your computer and use it in GitHub Desktop.
Save kashimAstro/9d44a76de73157b11bf653051ee89fba to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<canvas id="myCanvas" width="578" height="200"></canvas>
<script>
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.beginPath();
context.moveTo(100, 150);
context.lineTo(450, 50);
context.moveTo(20,20);
context.bezierCurveTo(20,100,200,100,200,20);
context.stroke();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment