daily pastebin goal
40%
SHARE
TWEET

CC: mon6

hevohevo Apr 18th, 2016 (edited) 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top