Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pocket3
- -- ポケコンのターミナル画面に四角形を描画する
- -- Functions
- function init()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- term.clear()
- end
- function drawPoint(x,y,color)
- term.setBackgroundColor(color)
- term.setCursorPos(x,y)
- term.write(" ")
- end
- -- Main
- for x=1,26 do
- init()
- drawPoint(x,1,colors.red)
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement