| Blockland Forums > General Discussion |
| What's the purpose of ColorIDs? |
| (1/2) > >> |
| Xalos:
Why do we have them? Is it a client rendering issue? Is it a network load issue? Why do we use ColorIDs instead of straight-out RGBA values? I came across a function that 'changes' a ColorID. However, all the bricks which already had that color stay the same, so I would assume they're 'remembering' their actual RGBA value, instead of the CID value - so why use them? I'm not saying I disagree with the concept of a colorset itself, but if the color could be changed arbitrarily, then it could be client-sided instead of server-sided - eliminating the competition between colorsets, because a client could just use the one s/he likes best. So why do we have ColorIDs? |
| Tonkka²:
If you're talking about Hex color codes on "center print" and other messages, they are easier to type and remember. |
| Ephialtes:
Because it only requires 6 bits to represent a color id across the network and a lot more to represent an RGBA color. |
| Xalos:
--- Quote from: Ephialtes on February 17, 2013, 05:02:09 AM ---Because it only requires 6 bits to represent a color id across the network and a lot more to represent an RGBA color. --- End quote --- One would imagine an RGBA color scheme would only be an increase of 24 bits per color - I very much doubt the extra 2 bits in that byte are used for anything else. |
| Reactor Worker:
--- Quote from: Xalos on February 17, 2013, 05:11:56 AM ---One would imagine an RGBA color scheme would only be an increase of 24 bits per color - I very much doubt the extra 2 bits in that byte are used for anything else. --- End quote --- "only" Yes, it would only increase the number of bits by a factor of five. |
| Navigation |
| Message Index |
| Next page |