Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function colors.fileToPaint(c)
- local color = term.getBackgroundColor()
- if c == "0" then color = colors.white
- elseif c == "1" then color = colors.orange
- elseif c == "2" then color = colors.magenta
- elseif c == "3" then color = colors.lightBlue
- elseif c == "4" then color = colors.yellow
- elseif c == "5" then color = colors.lime
- elseif c == "6" then color = colors.pink
- elseif c == "7" then color = colors.gray
- elseif c == "8" then color = colors.lightGray
- elseif c == "9" then color = colors.cyan
- elseif c == "a" then color = colors.purple
- elseif c == "b" then color = colors.blue
- elseif c == "c" then color = colors.brown
- elseif c == "d" then color = colors.green
- elseif c == "e" then color = colors.red
- elseif c == "f" then color = colors.black end
- return color
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement