How do you change the map color in the planet editor?

sm8941

Man on the Moon
Registered
#1
I have been trying to make a solar system, but when I tried to change the map color, the numbers are just not right.
 

Altaïr

Space Stig, Master of gravity
Staff member
Head Moderator
Team Kolibri
Modder
TEAM HAWK
Atlas
Deja Vu
Under Pressure
Forum Legend
#3
Can you tell us more specifically what is not right?
If you want to change the map color, you'll have to alter those values:
Screenshot_20210123-144745_QuickEdit+.jpg
You need to specify a color as a RGB code, with values ranging from 0 to 1. "a" is opacity, leave it to 1. Setting it to 0 will make it completely transparent.
 

bobbblair123

ሁልጊዜ ንጹህ የውስጥ ሱሪዎችን ይልበሱ
TEAM HAWK
Swingin' on a Star
Atlas
Fly me to the Moon
Under Pressure
Registered
#4
Can you tell us more specifically what is not right?
If you want to change the map color, you'll have to alter those values:
View attachment 54202
You need to specify a color as a RGB code, with values ranging from 0 to 1. "a" is opacity, leave it to 1. Setting it to 0 will make it completely transparent.
Not your standard 1-256 range? .765 etc is acceptable? I'm used to each pixel being assigned an RGB value. Very old school. So the RGB values assigned are a percentage of?
 

Altaïr

Space Stig, Master of gravity
Staff member
Head Moderator
Team Kolibri
Modder
TEAM HAWK
Atlas
Deja Vu
Under Pressure
Forum Legend
#5
Not your standard 1-256 range? .765 etc is acceptable? I'm used to each pixel being assigned an RGB value. Very old school. So the RGB values assigned are a percentage of?
Well, as I think like you I'm certainly old school too :p
What makes me say that is that the values used in practice are always between 0 and 1. So I guess you just have to take your usual RGB values and to divide them by 256...
 

sm8941

Man on the Moon
Registered
#8
I was wondering how I am supposed to convert the RGB values to decimals. Could you show an example pls? (Btw I am in grade 6 lol )
 

Altaïr

Space Stig, Master of gravity
Staff member
Head Moderator
Team Kolibri
Modder
TEAM HAWK
Atlas
Deja Vu
Under Pressure
Forum Legend
#11
I was wondering how I am supposed to convert the RGB values to decimals. Could you show an example pls? (Btw I am in grade 6 lol )
Let's suppose I want to change Earth's colour to this:
Screenshot_20210125-093731_Color Palette.jpg
The RGB code is (100, 30, 205).

Just divide each of these values by 255, and you get a decimal (100/255 = 0.39, 30/255 = 0.12, 205/255 = 0.8).

Enter these values in the planet file:
Screenshot_20210125-094051_QuickEdit+.jpg

And you get the result:
Screenshot_20210125-094013_Spaceflight Simulator.jpg
 

bobbblair123

ሁልጊዜ ንጹህ የውስጥ ሱሪዎችን ይልበሱ
TEAM HAWK
Swingin' on a Star
Atlas
Fly me to the Moon
Under Pressure
Registered
#12