Advertisement
Guest User

code

a guest
Oct 21st, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.20 KB | None | 0 0
  1. def voxel
  2. $x = 0
  3. $y = 0
  4. $z = 0
  5.  
  6. glColor3f(0, 1, 0);
  7. glPushMatrix();
  8. while $x < 10 and $y < 10
  9. glTranslatef($x*1,$y*1,0);
  10. glutSolidCube(0.5);
  11. $x += 1
  12. $y += 1
  13. $z += 1
  14. end
  15. glPopMatrix();
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement