Advertisement
UpZone

CC - Colors

Jun 16th, 2016
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. ---------------
  2. -- BY UPZONE --
  3. ---------------
  4.  
  5. white = "0"
  6. orange = "1"
  7. magenta = "2"
  8. lightBlue = "3"
  9. yellow = "4"
  10. lime = "5"
  11. pink = "6"
  12. gray = "7"
  13. lightGray = "8"
  14. cyan = "9"
  15. purple = "a"
  16. blue = "b"
  17. brown = "c"
  18. green = "d"
  19. red = "e"
  20. black = "f"
  21.  
  22. function change(color)
  23.     if white == color then
  24.         return orange
  25.     elseif orange == color then
  26.         return magenta
  27.     elseif magenta == color then
  28.         return lightBlue
  29.     elseif lightBlue == color then
  30.         return yellow
  31.     elseif yellow == color then
  32.         return lime
  33.     elseif lime == color then
  34.         return pink
  35.     elseif pink == color then
  36.         return gray
  37.     elseif gray == color then
  38.         return lightGray
  39.     elseif lightGray == color then
  40.         return cyan
  41.     elseif cyan == color then
  42.         return purple
  43.     elseif purple == color then
  44.         return blue
  45.     elseif blue == color then
  46.         return brown
  47.     elseif brown == color then
  48.         return green
  49.     elseif green == color then
  50.         return red
  51.     elseif red == color then
  52.         return black
  53.     elseif black == color then
  54.         return white
  55.     end
  56.  
  57.     return white
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement