Minimal Rotozoom using js canvas by Castrum Doloris
[nfo]
|
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
popularity : 57% |
|||||||||||||
alltime top: #13880 |
|
|||||||||||||
added on the 2008-09-29 16:18:26 by diver |
popularity helper
comments
rulez added on the 2008-09-29 16:19:33 by Queen_Luna
A bit on the small side (on screen that is), but ok otherwise. Runs fine but a bit slow on safari, must faster on a recent webkit build.
Nice one.
Slow on Safari (Windows) indeed, will try Chrome and Firefox once I get home from work.
Slow on Safari (Windows) indeed, will try Chrome and Firefox once I get home from work.
Slow but thumbs up for the effort.
Slow but pretty hardcore.
Amazing
approved
Code:
Now 16bytes smaller and working in Firefox, Webkit & Opera.<body onload='t=C.getContext("2d");z=Math.cos;setInterval("u=z(a+=88);v=z(a+11);for(x=64;x--;)for(y=64;y--;t.fillRect(x*2,2*y,2,2))o=z(x/20)*16*u,p=z(y/20)*16*u,t.fillStyle=\"rgb(\"+(((o*u+p*v)|(o*v-p*u))&255)+\",0,0)\"",a=9)'><canvas id=C>
Nice for a firstie
slow
SIR, that's a nice one, thx
:p CNR look at the code again:
/!\ the with(...) made things quite slow in FF and SF.
Code:
226 bytes with more varied colors.<body onload=setInterval("z=Math.cos;u=z(a+=44);v=z(a+11);with(C.getContext('2d'))for(x=64;x--;)for(y=64;y--;fillRect(x*2,2*y,2,2))o=z(x/20)*32*u,p=z(y/20)*32*u,fillStyle='#'+(619-((o*u+p*v)|(o*v-p*u)&511))",a=9)><canvas id=C>
/!\ the with(...) made things quite slow in FF and SF.
cool
crap!
ok
submit changes
if this prod is a fake, some info is false or the download link is broken,
do not post about it in the comments, it will get lost.
instead, click here !