Author Topic: colors  (Read 1692 times)

0 Members and 1 Guest are viewing this topic.

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
colors
« on: July 17, 2007, 01:43:37 am »
does anyone know what the heck the soldat color codes are? all those numbers make it weird, am I missing something, is making orange as hard as you make it seem?

help!
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline Cappy

  • Flagrunner
  • ****
  • Posts: 629
Re: colors
« Reply #1 on: July 17, 2007, 07:05:17 am »
When you're adding a color to your Web page with HTML, sometimes you can just type in the name of the color. But more often than not, you'll need to use what's called the hex code, which is something that the browser will be able to understand.

[DE] ~ ~ ~

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: colors
« Reply #2 on: July 17, 2007, 03:09:33 pm »
yeah, but no hex code I know has 8 characters and a $ in the front :/
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline Coolio

  • Camper
  • ***
  • Posts: 320
  • Well cya all.
Re: colors
« Reply #3 on: July 17, 2007, 03:11:20 pm »
When you're adding a color to your Web page with HTML, sometimes you can just type in the name of the color. But more often than not, you'll need to use what's called the hex code, which is something that the browser will be able to understand.

I hate hex codes.
BANNED

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: colors
« Reply #4 on: July 17, 2007, 03:15:55 pm »
WHAT HEX CODES DOES SOLDAT USE they are confusing to me! I type in $00ffa500 and I expect orange, but I get light BLUE!!! LIGHT FLIPPIN BLUE! help me...
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: colors
« Reply #5 on: July 17, 2007, 03:20:56 pm »
yeah, but no hex code I know has 8 characters and a $ in the front :/
You mean $2EF4BDCC or something like that?
First two characters (except '$') are for transparency (00 = invisible, FF = 100% visible), next two - red, next two - green, last two chars - blue color.
« Last Edit: July 17, 2007, 03:26:39 pm by freestyler »

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: colors
« Reply #6 on: July 17, 2007, 03:26:21 pm »
no, it uses 3 colors - two (hex) digits for each
RGB RedGreenBlue
you want orange?  -  $FFF000
FF = full red
F0 = half green
00 = no blue

Uhm, what are these colors for?  Clothing color in soldat?  Scripting text colors?  Polyworks?!
depending on where you use it there may be a 4th number (at the beginning) for transparency...
Can't think of anything original to put here...

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: colors
« Reply #7 on: July 17, 2007, 03:39:32 pm »
I figured it out, MM made the codes backwards :/

Date Posted: July 17, 2007, 04:35:59 PM
I understand hexes, mm just placed them in backwards, orange: $000080FF when it should be #FF8000

Date Posted: July 17, 2007, 04:38:04 PM
and zyx, fff000 is this

nice cream color though ;)

actually, it's only cream on the forum BG :P it's more yellow than cream: [color=fff080]this is closer I think[/color]
« Last Edit: July 18, 2007, 12:10:51 am by Kavukamari »
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline -Vis-

  • Flagrunner
  • ****
  • Posts: 980
  • Zarch
Re: colors
« Reply #8 on: July 17, 2007, 03:43:09 pm »
you want orange?  -  $FFF000
FF = full red
F0 = half green
00 = no blue

No, half of a colour is about 88. It's like counting normally.
00,01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,0E,0F
10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F
etc.

Medium orange would be something like 888800, and FFF000 is pretty much yellow, since F0 is 6 steps away from full green.

And he really did get the colours backwards... I didn't even realise that. How did that happen anyway?
« Last Edit: July 17, 2007, 03:48:54 pm by -Vis- »


Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: colors
« Reply #9 on: July 17, 2007, 05:02:17 pm »
hmm I am pretty sure skin color is not in hex code. it is using some other code which I have not taken time to look trough. so I dont really know how this other color code works.

Offline -Vis-

  • Flagrunner
  • ****
  • Posts: 980
  • Zarch
Re: colors
« Reply #10 on: July 17, 2007, 06:38:58 pm »
The skin colour is basically:

(red * 65536) + (green * 256) + blue

where red, green and blue are numeric versions of hex, ie. 0-255.
« Last Edit: July 18, 2007, 11:21:32 am by -Vis- »


Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: colors
« Reply #11 on: July 18, 2007, 12:04:35 am »
eerm ok?

I have different problems, I made a new profile (soldat profile) and it messed up my skin color, I can't make it green anymore, I restarted my comp, and then it changed to black, HELP! (I deleted the new profile and left my Kavukamari one and it's messed up)
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline Coolio

  • Camper
  • ***
  • Posts: 320
  • Well cya all.
Re: colors
« Reply #12 on: July 18, 2007, 12:59:52 am »
This color stuff is hard to get.
BANNED

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: colors
« Reply #13 on: July 18, 2007, 06:51:01 am »
you want orange?  -  $FFF000
FF = full red
F0 = half green
00 = no blue

No, half of a colour is about 88. It's like counting normally.
00,01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,0E,0F
10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F
etc.

Medium orange would be something like 888800, and FFF000 is pretty much yellow, since F0 is 6 steps away from full green.

And he really did get the colours backwards... I didn't even realise that. How did that happen anyway?

Half of a color is exactly 7F(127). And it's not so much that MM made the colors backwards, it's how delphi handles them internally.

Offline -Vis-

  • Flagrunner
  • ****
  • Posts: 980
  • Zarch
Re: colors
« Reply #14 on: July 18, 2007, 11:23:50 am »
Well it didn't handle them like that before. In 1.3.1, $00FF0000 would give you red, now it gives you blue, and same for the opposite, $000000FF used to be blue, now it's red. Not that I'm complaining or anything. I just wondered why this is.


Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: colors
« Reply #15 on: July 18, 2007, 05:41:46 pm »
newer versions of directx trying to be more "user friendly" and messing up game codes in the process?
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."