Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- graphics3d is available globally on computers
- graphics3d.clear()
- graphics3d.setColor(0x00FF00) -- Green default
- -- Draw a spinning cube above the computer
- graphics3d.drawBox(0, 1, 0, 0.5, 0.5, 0.5, nil, false)
- -- Animate
- for i = 1, 360 do
- graphics3d.setRotation(i, i * 0.5, 0)
- sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment