Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("back")
- xMax,yMax=m.getSize()
- while true do
- m.clear()
- time=os.time()
- for i=1,xMax do
- xPos=math.cos((360/12*math.fmod(time,12)-90)/360*6.28)*i+xMax/2
- yPos=math.sin((360/12*math.fmod(time,12)-90)/360*6.28)*i+yMax/2
- m.setCursorPos(xPos,yPos)
- m.write("#")
- --print(xPos,yPos)
- end
- m.setCursorPos(1,1) m.write(time)
- sleep(1)
- end
Add Comment
Please, Sign In to add comment