This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

Make it chain

ne10(25)
Published in
#bitcoin
Words
34
Reading
1 min
Listen
Play
9y

thumbnail.jpg

Add raining bitcoin to a website

Full repo can be found at https://github.com/Onitz/make-it-chain
the following code can be modified to switch up the animation settings

function animate()
  {
    mesh[0].rotation.x+=0.1;
    mesh[2].rotation.z+=0.1;
    mesh[2].rotation.y+=0.1;
    mesh[1].rotation.z+=.2;
    requestAnimationFrame(animate);
    renderer.render(scene,camera);

    mesh.forEach(m=>{
      m.position.y -= fallspeed;
      if(m.position.y < -bound){
        m.position.y = bound;
      }
    });
  }

Texture & model credit goes to pkellz (see initial fork)

Make it chain | Ecency