Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<canvas> Hello World, thanks @miketaylr!
window.onload = function() {
var ctx = document.querySelector('#c').getContext('2d');
ctx.lineWidth = 20;
ctx.lineCap = 'square';
ctx.lineJoin = 'round';
ctx.strokeStyle = '#c9f'; // 'rgb(247, 63,20)';
<canvas id="c" height=400 width=400></canvas>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment