This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
theoriginalbit's profile picture

[Colours] Possible colours

Started by theoriginalbit, 15 December 2012 - 05:14 PM
theoriginalbit #1
Posted 15 December 2012 - 06:14 PM
Does anyone know if its possible to define you own custom colours when it comes to setting the terminal text or background colour?

For example is he using a C style string printing or where a hexadecimal can be parsed and that defines the colour?

Thanx in advance :)/>
Bubba #2
Posted 15 December 2012 - 07:01 PM
Nope. Custom colors aren't featured in this version of ComputerCraft. I think it's been suggested before, but the devs weren't keen on the idea.
theoriginalbit #3
Posted 15 December 2012 - 07:21 PM
Nope. Custom colors aren't featured in this version of ComputerCraft. I think it's been suggested before, but the devs weren't keen on the idea.

Damn, I was hoping there would be a way. Sometimes 16 colours just isn't enough. From a dev aspect though its not that hard, so hopefully they will add it later :)/>
Dlcruz129 #4
Posted 15 December 2012 - 08:06 PM
Nope. Custom colors aren't featured in this version of ComputerCraft. I think it's been suggested before, but the devs weren't keen on the idea.

Damn, I was hoping there would be a way. Sometimes 16 colours just isn't enough. From a dev aspect though its not that hard, so hopefully they will add it later :)/>/>

I think it may be a limitation to Minecraft. You always see the same colors…
Lyqyd #5
Posted 15 December 2012 - 08:07 PM
From a design/networking/ease of use standpoint, it simply isn't going to happen. There are some very good reasons why 16 colors is the way to go.
theoriginalbit #6
Posted 15 December 2012 - 08:18 PM
I think it may be a limitation to Minecraft. You always see the same colors…

Well its actually not a limitation to Minecraft, I have been experimenting in my Mod and with LWJGL and its quite easy to render ANY colour you want thats on the (r, g, b, a) scale.

From a design/networking/ease of use standpoint, it simply isn't going to happen. There are some very good reasons why 16 colors is the way to go.

The "very good reason" for 16 colors is Mojangs fault. They decided to write their own format of NBT and only allow the meta data of blocks to be a nibble long, meaning 16 values. As a result they only implemented 16 coloured dyes. they could add more, but would have to use a different item id because of their setup. However since rendering a colour to the GUI has nothing to do with the NBT data, i see no reason why it cant be any colour. Also in terms of design and networking, there is no difference, all colours are either (r, g, B)/> or (r, g, b, a) changing the colour doesn't change functionality or how the colour is transmitted.