Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Last active August 17, 2017 14:43
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 carbide-public/12a55609b9cae899c5c55387704c04cc to your computer and use it in GitHub Desktop.
Save carbide-public/12a55609b9cae899c5c55387704c04cc to your computer and use it in GitHub Desktop.
untitled
var canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d');
function circle(cx, cy, r){
ctx.beginPath();
ctx.arc(cx, cy, r, 0, 2*Math.PI);
ctx.stroke();
}
for(let i = 0; i < 6; i++)
circle(i*5, i*5, 2);
canvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment