Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- mon6
- -- 赤い長方形を描く
- local mon = peripheral.wrap("top") -- 変数monに各種操作関数を詰め込む
- mon.setTextColor(colors.white)
- mon.setBackgroundColor(colors.black)
- mon.clear()
- mon.setTextScale(0.5) -- 文字のサイズを0.5にする(標準は1)
- mon.setBackgroundColor(colors.red) -- 背景色 赤
- for y=3,5 do
- mon.setCursorPos(2,y)
- mon.write(" ") -- 半角スペースを10個
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement