Advertisement
hevohevo

CC: pocket2

Apr 25th, 2016
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. -- pocket2
  2. -- ポケコンに四角形を表示する。
  3.  
  4. -- ターミナル画面の初期化作業
  5. term.setTextColor(colors.white)
  6. term.setBackgroundColor(colors.black)
  7. term.clear()
  8.  
  9. -- 四角形描画
  10. term.setBackgroundColor(colors.red)  -- 背景色 赤
  11.  
  12. for y=3,5 do
  13.   term.setCursorPos(2,y)
  14.   term.write("          ")  -- 半角スペースを10個
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement