Author Topic: Hex Colors  (Read 7212 times)

Pazuzu

  • Posts: 987
  • Turrets: +50/-12
Hex Colors
« 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.

ok, can you give me the tool thingy app that can code?

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: Hex Colors
« Reply #1 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...
Slackware64 13.1
SlackersQVM/

Pazuzu

  • Posts: 987
  • Turrets: +50/-12
Re: Hex Colors
« Reply #2 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.

ok, can you give me the tool thingy app that can code?

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: Hex Colors
« Reply #3 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
Slackware64 13.1
SlackersQVM/

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Hex Colors
« Reply #4 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.
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
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Hex Colors
« Reply #5 on: December 14, 2010, 02:46:25 pm »
Doens't Nexuiz have these? Or do i remember competely wrong.

Thoth

  • Posts: 39
  • Turrets: +1/-1
Re: Hex Colors
« Reply #6 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). 
guys...GUYS

Tremulant

  • Spam Killer
  • *
  • Posts: 1039
  • Turrets: +370/-58
Re: Hex Colors
« Reply #7 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.
my knees by my face and my ass is being hammered

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Hex Colors
« Reply #8 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!

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Hex Colors
« Reply #9 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 :).
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Hex Colors
« Reply #10 on: December 15, 2010, 02:55:02 pm »
You can encode the full RGBA range with just 5 base85 characters...

A Spork

  • Spam Killer
  • *
  • Posts: 1010
  • Turrets: +37/-230
    • Spork - Unvanquished.net
Re: Hex Colors
« Reply #11 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....
Don't shoot friend :basilisk:! Friend :basilisk: only wants to give you hugz and to be your hat

Proud Member of the S.O.B.F.O.B.S.A.D: The Society Of Basilisks For Other Basilisks Safety and Dominance
:basilisk:    :basilisk:    :basilisk:

Pazuzu

  • Posts: 987
  • Turrets: +50/-12
Re: Hex Colors
« Reply #12 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.

ok, can you give me the tool thingy app that can code?