Advertisement
hevohevo

CC: mon6

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