56 posts
Posted 18 February 2014 - 10:30 PM
Hey guys, I want to start getting into some open peripherals stuff pretty soon(terminal glasses), but I can't seem to find a lot of information on anything for its special functions. Also, it doesn't seem to support the color API and was wondering if anyon can tell me how hexadecimal colors work. Again, this is all just preemptive so if you know of anything that might be of use to me it would be greatly appreciated - CRF
7508 posts
Location
Australia
Posted 18 February 2014 - 10:55 PM
As for info there's quite a lot out there, you just need to know where to look. Most of the methods however are pretty self explanatory if you look at them. I believe the topic has some useful information though, nothing has really changed about the Terminal Glasses (well nothing that you as a developer need to know, there's lots changed behind the scenes)
As for the hexadecimal colours, they work like so:
It is normally a 6 character long string formatted in Lua like so
0xRRGGBB
where R is a HEX number between 00 and FF (0-255) representing Red
where G is a HEX number between 00 and FF (0-255) representing Green
where B is a HEX number between 00 and FF (0-255) representing Blue
This is a good
resource if you know an RGB and want the HEX and don't want to convert it yourself.
56 posts
Posted 19 February 2014 - 06:24 AM
Thank you very much. That is going to make my life much easier