| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Pro Libertate!
|
Color editing
I've been creating mods for a while, and always stuck at the color editing.
I know how to create colors, add them to the game etc. but can't get the EXACT color I want. Probably you don't understand me yet. I mean the colors in civ 4 are not the same RGB values than (ex.) Gimp RGB, the Civ 4 ones are Float values. Now I have tons of values I want to implant, but all of them are in 0-255 format (tipycal RGB format). For example I have: R 9 G 79 B 150 then how can I calculate it to Civ 4 float format?
__________________
HUNGARY TO CIVILIZATION! ONLINE PETITION HERE: http://www.change.org/petitions/fira...o-civilization PUT THIS MESSAGE TO YOUR SIGNATURE TOO! |
|
|
|
|
|
#2 |
|
Emperor
Join Date: May 2009
Posts: 1,260
|
I believe the float values are percentages of the standard RGB values. So, for example, a value of 256 would convert to 1.0, while a value of 9 would convert to 0.03 (9 divided by 256).
And then of course, the fAlpha value is for transparency.
__________________
More Naval AI (an AI mod for FFH2) - focusing on bugfixes, stability and AI improvement |
|
|
|
|
|
#3 |
|
Pro Libertate!
|
Huh, you seem to be right. Well, I shall try that.
__________________
HUNGARY TO CIVILIZATION! ONLINE PETITION HERE: http://www.change.org/petitions/fira...o-civilization PUT THIS MESSAGE TO YOUR SIGNATURE TOO! |
|
|
|
|
|
#4 |
|
Magical Unicorn Historian
|
Simply divide the RGB value by 255, then input the first two digits of the decimal number you get.
__________________
"Learn to shorten your reach! If your foe can come close enough to negate your striking power, all stratagem is lost and when all stratagem is lost, the battle is lost."-Commander Farsight South of OT, there is no law. South of the Chamber, there is no God. |
|
|
|
|
|
#5 |
|
Pro Libertate!
|
Yup, I figured out now.
And it seems to be working.
__________________
HUNGARY TO CIVILIZATION! ONLINE PETITION HERE: http://www.change.org/petitions/fira...o-civilization PUT THIS MESSAGE TO YOUR SIGNATURE TOO! |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|