Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function fill(col)local w,h=term.getSize()local x1,y1,x2,y2=1,1,1,1 local colIndex=1 local function increase()x1,y2=x1+1,y2+1
- end
- while(x1-20)<w do
- paintutils.drawLine(x1,y1,x2,y2,col[colIndex])increase()colIndex=colIndex+1 if(colIndex>#col)then colIndex=1 end
- end
- end
- local colorModes={rainbow={colors.red,colors.orange,colors.yellow,colors.green,colors.lightBlue,colors.blue,colors.purple},black_white={colors.white,colors.black},blue={colors.blue,colors.lightBlue},green={colors.green,colors.lime},fire={colors.red,colors.orange,colors.yellow}}
- ----------------------------------
- local mode = colorModes[string.lower(...)]
- ----------------------------------
- while true do
- fill(mode)sleep(.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment