FUNEBRA✦
a=0;
spd=0.001;
z_depth=0;
function ani(){
cosa=Math.cos(a);
sina=Math.sin(a);
a+=spd;
if(a<60){
for(o=1;o<64;o++){
t=(o%20)/20;
x=eval(scodeX.value);
y=eval(scodeY.value);
z=eval(rYcode.value);
eval('bn'+o).style.left=(x*cosa+y*sina+z)+401;
eval('bn'+o).style.top=(x*sina-y*cosa+z)+280;
// Give shape some 3D volume
z = Math.sin((x + y) * 0.5) * z_depth + (t - 0.5) * z_depth * 0.5;
}
}else{a=359;}
requestAnimationFrame(ani);
}ani();
a = 0;
spd = 0.001;
z_depth = 80;
function ani(){
const cosa = Math.cos(a);
const sina = Math.sin(a);
a += spd;
for(let o=0;o<64;o++){
let x = cube[o*3];
 
...
Read more »
Explore story ↗