# Sky palettes (design 24.12; read by src/model/universe/SystemGen.cpp): the colours an atmosphere should
# show, which deriveAtmosphere turns into scattering and absorption. Which palette a planet wears is
# decided in code from its chemistry and flora. See README.md in this folder for the format.
#
# Each colour is a hue (degrees) and a saturation; dustiness is the share of the sky colour that
# comes from haze or dust, and rayleigh the Rayleigh strength against an Earth-like sky. Every
# field is a draw (see src/world/data/Draws.hpp for the forms), run in the order of the lines, so the
# order of the lines is part of the data. Flora skies start from their theme's sky (theme hue,
# theme sat, theme sunset hue, theme sunset sat) and are named after it; exotic ones are named
# after their hue.

[sky Terran]
name = Nitrogen-oxygen
sky sat = 0.55 .. 0.68
sky hue = 212 ± 6
sunset sat = 0.8 .. 0.92
sunset hue = 22 ± 10
halo hue = 40 ± 8
halo sat = 0.2
dust hue = 35
dust sat = 0.08
cloud hue = 220 ± 20
cloud sat = 0.03
dustiness = 0.1
rayleigh = 1

# Mars-like: butterscotch day from dust, blue sunsets.
[sky Dusty]
name = Dusty carbon dioxide
sky hue = 30 ± 6
sky sat = 0.5
sunset hue = 205 ± 10
sunset sat = 0.55
halo hue = 200 ± 8
halo sat = 0.45
dust hue = sky hue
dust sat = sky sat
cloud hue = 30 ± 8
cloud sat = 0.18
dustiness = 1
rayleigh = 0.25

# Cyan skies, green sunsets.
[sky Methane]
name = Methane
sky hue = 186 ± 10
sky sat = 0.5
sunset hue = 115 ± 25
sunset sat = 0.6
halo hue = 150 ± 15
halo sat = 0.25
dust hue = 180
dust sat = 0.1
cloud hue = 190 ± 10
cloud sat = 0.07
dustiness = 0.2
rayleigh = 1

# Venus-like yellow haze, deep orange sunsets.
[sky Sulfur]
name = Sulfuric haze
sky hue = 48 ± 6
sky sat = 0.6
sunset hue = 14 ± 8
sunset sat = 0.9
halo hue = 42 ± 6
halo sat = 0.45
dust hue = 46 ± 5
dust sat = 0.45
cloud hue = 50 ± 6
cloud sat = 0.28
dustiness = 0.6
rayleigh = 0.6

# Titan-like orange smog, crimson sunsets.
[sky Tholin]
name = Tholin haze
sky hue = 28 ± 6
sky sat = 0.65
sunset hue = 358 ± 10
sunset sat = 0.85
halo hue = 30 ± 8
halo sat = 0.35
dust hue = 28 ± 5
dust sat = 0.55
cloud hue = 32 ± 6
cloud sat = 0.3
dustiness = 0.8
rayleigh = 0.5

# Any hue, with a sunset from the far side of the colour wheel.
[sky Exotic]
hue names = Crimson, Amber, Golden, Chartreuse, Green, Jade, Teal, Cyan, Azure, Indigo, Violet, Magenta
sky hue = 0 .. 360
sky sat = 0.45 .. 0.7
sunset sat = 0.7 .. 0.9
sunset hue = sky hue + 130 .. 230
halo hue = sky hue + 60 .. 120
halo sat = 0.3
dust hue = sky hue
dust sat = 0.15
cloud hue = sky hue ± 30
cloud sat = 0.1
dustiness = 0 .. 0.4
rayleigh = 1

# The sky a living world's flora theme pairs with (never drawn at random).
[sky Flora]
sky hue = theme hue ± 5
sky sat = theme sat × 0.9 .. 1.1
sunset hue = theme sunset hue ± 8
sunset sat = theme sunset sat
halo hue = theme sunset hue
halo sat = 0.2
dust hue = sky hue
dust sat = 0.08
cloud hue = sky hue
cloud sat = 0.04
dustiness = 0.1
rayleigh = 1
