Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Kodos

kcolors.lua - A simpler color library

Recommended Posts

I got tired of having to remember which color was which number on the default colors lib, so I made my own library so I could easily just call things like 'red' or 'lightblue' instead of  14 or whatever number the color I needed was.

Finally got it working, so I figured I'd share it.  Feel free to do whatever you want with it.

 

 

kcolors = {
 
white = 0xFFFFFF,
orange = 0xFFAA00,
magenta = 0xFF55FF,
lightblue = 0x55FFFF,
yellow = 0xFFFF00,
lime = 0x55FF55,
pink = 0xFF5555,
gray = 0x555555,
lightgray = 0xAAAAAA,
cyan = 0x00AAAA,
purple = 0xAA00AA,
blue = 0x5555FF,
brown = 0x421010,
green = 0x00AA00,
red = 0xAA0000,
black = 0x000000
}
 
return kcolors
 

 
Pastebin for the lazy: 
 

pastebin get 01ZrHdgk /lib/kcolors.lua

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.