Skip to content

Instantly share code, notes, and snippets.

View xeecos's full-sized avatar

xeecos xeecos

View GitHub Profile
@xeecos
xeecos / moving.js
Created May 10, 2018 10:45
moving.js
var w = canvas.width;
var h = canvas.height;
var body = 30;
var x0=0,y0=0,x1=0,y1=body;
var angle = 0;
var cx = 300,cy = 300;
var pp0 = [];
var pp1 = [];
var total = 100;
setInterval(()=>{