ElijahCrafter

3D API Test

Dec 3rd, 2025
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | Source Code | 0 0
  1. -- graphics3d is available globally on computers
  2. graphics3d.clear()
  3. graphics3d.setColor(0x00FF00)  -- Green default
  4.  
  5. -- Draw a spinning cube above the computer
  6. graphics3d.drawBox(0, 1, 0, 0.5, 0.5, 0.5, nil, false)
  7.  
  8. -- Animate
  9. for i = 1, 360 do
  10.     graphics3d.setRotation(i, i * 0.5, 0)
  11.     sleep(0.05)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment