Hi-Color Palette Color #s and Photoshop

Started by Relight, Sun 16/05/2004 21:25:02

Previous topic - Next topic

Relight

There are some places you can specify a color #, such as in different spots for GUIs like foreground color, background color, highlight color, etc.

If I have a color in Photoshop, how can I find out the # to give AGS? AGS uses 31 RGB slots instead of 255 so I can't just type in the RGB value from Photoshop, unless I do math with fractions, which means I won't get the exact same color.

Moox

in ags in the pallete window it tells u the code

Relight

I am asking how that code corresponds if possible to the various codes that Photoshop provides, or if it can be made to do so. I want to pick the color in Photoshop first and then use that same color in AGS, not the other way around. Although maybe I'm not being clear, because actually the same problem would occur if trying to go from AGS to Photoshop.

Scorpiorus

#3
In AGS editor a color is represented in 16bit format whereas in Photoshop in 24bit one. AGS doesn't make dithered colors, so for a 16bit game you have to convert: (color_component*31)/255.
As for 32bit, AGS color finder seems to assume the color is still in 16bit, though. Maybe it just wasn't implemented?

SMF spam blocked by CleanTalk