Toggle navigation
Sign Up
Log In
Explore
Works
Folders
Tools
Collections
Artists
Groups
Groups
Topics
Tasks
Tasks
Jobs
Teams
Jobs
Recommendation
More Effects...
JS
var kari,count,ime,ctx,gt,gr,gratank,mtank,sokudo,max=15; (function(){ var a,b,canvas,col; canvas=document.getElementById("world"); ctx=canvas.getContext("2d"); canvas.width=canvas.height=400; ctx.fillStyle="rgb(0,0,0)"; ctx.fillRect(0,0,400,400); ime=ctx.getImageData(0,0,400,400); col=[ [0,0,0],[255,155,0],[255,255,0],[255,255,255] ]; mtank=[]; b=2; for(a=0;a
=gratank.length)c=gratank.length-1; c=gratank[c]; imd[iti]=c[0]; imd[iti+1]=c[1]; imd[iti+2]=c[2]; } iti+=4; } } } function gra(atai,col){ var a,b,c,d; var c1,c2,c3,N1,N2; if(atai<0)atai=0; if(atai>1)atai=1; atai*=col.length; N1=Math.floor(atai); N2=N1+1; if(N1>=col.length)N1=col.length-1; if(N2>=col.length)N2=col.length-1; a=atai%1; a=0.5-Math.cos(a*Math.PI)/2; b=1-a; c1=col[N1][0]*b+col[N2][0]*a; c2=col[N1][1]*b+col[N2][1]*a; c3=col[N1][2]*b+col[N2][2]*a; return [c1,c2,c3]; } function hata(){ var a,b,c,d,e,f,t, ime,tx,ty,x,y,ki,han,tt,abs,mf, t0,t1,t2,t3,t4,t5,t6,t7; mf=Math.floor;abs=Math.abs; han=100; t0=gt[0];t1=gt[1];t2=gt[2];t3=gt[3];t4=gt[4];t5=gt[5];t6=gt[6];t7=gt[7]; tx=ty=200; tx-=han/2; for(a=0;a
10)ten1(x*han+tx,y*han+ty); if(a
=400 || py<0 || py>=400)return; kari[py][px]+=bai; } }
CSS
* { margin: 0; padding: 0; border: 0; } canvas { width: 100%; height: 100%; }
HTML
Join Effecthub.com
Working with Global Gaming Artists and Developers!
Login
Sign Up
Or Login with Your Email Address:
Email
Password
Remember
Or Sign Up with Your Email Address:
Your Email
This field must contain a valid email
Set Password
Password should be at least 1 character
Stay informed via email