You can even have 2 layers of colors to create more precision.
This API doesn't have its own functions, but it injects functions into the colors and colours APIs,
so it doesn't matter if you load this as an API, or copy and paste it into your program.
Download:
pastebin get BCSWghjR rgb
Example:
colors.fromRGB(255, 0, 0) returns 16384 (colors.red)
colors.toRGB(colors.blue) returns 51, 102 and 204
All functions are documented here:
colors.fromRGB
colors.toRGB
colors.fromRGB2
colors.toRGB2
Edited by CrazedProgrammer, 12 June 2015 - 02:12 PM.