Tremulous Forum

General => Feedback => Topic started by: Pazuzu on December 14, 2010, 02:35:03 am

Title: Hex Colors
Post by: Pazuzu on December 14, 2010, 02:35:03 am
How much of an overhaul of the game would be necessary to implement hex colors (ie #000=black, #fff=white, #f00=red, etc) in names and messages? Just out of curiosity.
Title: Re: Hex Colors
Post by: SlackerLinux on December 14, 2010, 03:22:44 am
wouldnt take much effort but why

the colours we got now is plenty and there wouldn't be much space left in names after using a colourcodes since a single colourcode could be #FFFFFFFF(less 2 FF's if alpha wouldn't be supported)

also your colourcodes are wrong FF is 8bit(255 values) so black(w/out alpha) would be #000000 white(w/out alpha) #FFFFFF etc...
Title: Re: Hex Colors
Post by: Pazuzu on December 14, 2010, 03:28:38 am
I take it you've never seen 12-bit hex colors. AFAIK it's supported under HTML- each color gets 4 bits instead of 8, so that's a total of three hex digits per color.
Title: Re: Hex Colors
Post by: SlackerLinux on December 14, 2010, 04:02:15 am
I take it you've never seen 12-bit hex colors. AFAIK it's supported under HTML- each color gets 4 bits instead of 8, so that's a total of three hex digits per color.

maybe im missing something but if #FFF is white then that's only 4bits per colour 12bit per colour would be #FFFFFFFFF since each hex charater is equal to 4bits anyway everything uses 8bits per colour

EDIT wait i know what you mean about 12bit hex colours but thats kinda useless
Title: Re: Hex Colors
Post by: Undeference on December 14, 2010, 05:15:17 am
How much of an overhaul of the game would be necessary to implement hex colors (ie #000=black, #fff=white, #f00=red, etc) in names and messages? Just out of curiosity.
Pointless

I take it you've never seen 12-bit hex colors.
Quote from: http://www.w3.org/TR/css3-color/#numerical
The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros. For example, #fb0 expands to #ffbb00. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display.

it's supported under HTML in CSS
Fixed
Title: Re: Hex Colors
Post by: DraZiLoX on December 14, 2010, 02:46:25 pm
Doens't Nexuiz have these? Or do i remember competely wrong.
Title: Re: Hex Colors
Post by: Thoth on December 14, 2010, 09:34:42 pm
Yes, Nexuiz does, ever since the last last release I believe. It would be nice to have hex colors, they are a lot more useful then you think they would be (considering slight altering of colors to eliminate text blending with the map). 
Title: Re: Hex Colors
Post by: Tremulant on December 15, 2010, 04:46:17 am
they are a lot more useful then you think they would be
A lot? go on then, explain their usefulness.
Title: Re: Hex Colors
Post by: DraZiLoX on December 15, 2010, 01:12:07 pm
they are a lot more useful then you think they would be
A lot? go on then, explain their usefulness.
It's cool and that is usefull!
Title: Re: Hex Colors
Post by: David on December 15, 2010, 02:06:44 pm
IMO hex colours is overkill (and probably confusing to idiots) but we should extend the current system beyond the current 8 colours.

We could even go for a comprimise between the two, and use base64 encoded 6-bit colour, it's still only one char long but with "easy" conversion from hex values :).
Title: Re: Hex Colors
Post by: gimhael on December 15, 2010, 02:55:02 pm
You can encode the full RGBA range with just 5 base85 characters...
Title: Re: Hex Colors
Post by: A Spork on December 15, 2010, 04:33:32 pm
IMO hex colours is overkill (and probably confusing to idiots) but we should extend the current system beyond the current 8 colours.

We could even go for a comprimise between the two, and use base64 encoded 6-bit colour, it's still only one char long but with "easy" conversion from hex values :).
I would think we could easily add at least two more right now, seeing as 9 and 0 are repeats....
Title: Re: Hex Colors
Post by: Pazuzu on December 15, 2010, 04:50:54 pm
IMO hex colours is overkill (and probably confusing to idiots) but we should extend the current system beyond the current 8 colours.

We could even go for a comprimise between the two, and use base64 encoded 6-bit colour, it's still only one char long but with "easy" conversion from hex values :).
That would be even more confusing tbh, but it could work with a table.