353 posts
Location
Orewa, New Zealand
Posted 06 April 2015 - 07:57 AM
I can only think that there is a reason for this feature not to be implemented, but I find the inability to use colour codes (Like #C60 or #000000) frustrating, I like being able to use color.<color>, but at the same time I would like the option to use hex codes.
For instance, is CSS you can use:
color: orange;
or
color: #C60;
Thanks, Harry.
Edited on 06 April 2015 - 05:57 AM
7083 posts
Location
Tasmania (AU)
Posted 06 April 2015 - 09:45 AM
What you're asking for is rather impractical when you consider that ComputerCraft offers just 16 colours on a static palette. Though I've got a hunch you can directly enter the hex values provided
here.
On the other hand, are you familiar with term.blit()? You may be interested in reading the last couple of pages of the ComputerCraft beta discussion and checking out how that works.
7508 posts
Location
Australia
Posted 06 April 2015 - 10:13 AM
You can definitely just use the hex codes for the 16 colours, just like you could use the integers as well.
1426 posts
Location
Does anyone put something serious here?
Posted 06 April 2015 - 10:35 AM
You can definitely just use the hex codes for the 16 colours, just like you could use the integers as well.
I presume you mean in the format
term.setBackgroundColor(0x4000) rather than (0xF00). It might be possible to write a converter for between the two using
color difference but in the end it is just easier using color.red :P/>.