Close
Sign in to view the code!
Sign in to send to cube!
Rain
Created by Saber on July 01, 2015
Twitter
Facebook
A little rain for anyone who's tired of summer :)
Comments:
Sign up, to be the first!
Up next
Clock
Update Demo
Sign up, make your own!
Cube cube = Cube(); int voxelX=rand()%8, voxelZ=rand()%8; int voxelY=7; void setup() { cube.begin(); } void loop() { cube.background(black); //downward motion if (voxelY>=0) { cube.setVoxel(voxelX,voxelY,voxelZ,blue); voxelY--; } //resets coordinates of voxel when it reaches the bottom if (voxelY==0) { voxelX=rand()%8, voxelZ=rand()%8; voxelY=7; } cube.show(); }