Jump to content




[Colours] Possible colours


  • You cannot reply to this topic
5 replies to this topic

#1 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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 :)

#2 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

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.

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 December 2012 - 07:21 PM

 Bubba, on 15 December 2012 - 07:01 PM, said:

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 :)

#4 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 15 December 2012 - 08:06 PM

 TheOriginalBIT, on 15 December 2012 - 07:21 PM, said:

 Bubba, on 15 December 2012 - 07:01 PM, said:

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...

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#6 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 December 2012 - 08:18 PM

 Dlcruz129, on 15 December 2012 - 08:06 PM, said:

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.

 Lyqyd, on 15 December 2012 - 08:07 PM, said:

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users