diff options
| author | jules <jules@okfoc.us> | 2013-12-17 10:06:37 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2013-12-17 10:06:37 -0500 |
| commit | f4eee2184b439c4e60edd3215441a212bf2bae58 (patch) | |
| tree | 67f89e36bb67556d9324a169893f3d5c09d65759 /js/util.js | |
| parent | 3ed9546b8671c277011085c649986d48208a8a35 (diff) | |
weird ish when loading gif still
Diffstat (limited to 'js/util.js')
| -rw-r--r-- | js/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ function randint(n){ return rand(n)|0 } function choice(a){ return a[randint(a.length)] } function deg(n){ return n*180/PI } function rad(n){ return n*PI/180 } -function pixel(x,y){ return 4*(y*w+x) } +function pixel(x,y){ return 4*(mod(y,h)*w+mod(x,w)) } function rgbpixel(d,x,y){ var p = pixel(x,y) r = d[p] |
