Jewel
Jewel is the look every Bitflinger game shares: six jewel tones on a dark
amethyst ink ground, a faceted sky, and a finish over the world that pulls
colours to the palette and lets bright colour bloom. It's always there: you
don't need to load it.
Colours
| Name | Colour | Use it for |
|---|---|---|
INK | #17141f | The ground everything sits on |
AMETHYST | #7b4fe0 | |
AQUA | #2ee6c5 | |
SAPPHIRE | #2f6bea | |
RUBY | #e3386b | |
CITRINE | #f6b93b | Coins, warm light |
EMERALD | #12a87e | Grass and leaves |
PEARL | #f0ecfa | Text and marks drawn on ink |
label.add_theme_color_override("font_color", Jewel.PEARL)
Sky and light
| Call | Gives back | What it does |
|---|---|---|
new_sky_material(hour: float) | ShaderMaterial | A faceted sky for a 3D Environment, at hour (0 to 24). Keep it to change the hour later |
set_sky_hour(material: ShaderMaterial, hour: float) | nothing | Moves a sky from new_sky_material to another hour |
daylight(hour: float) | float | 0 in the dead of night, 1 at midday |
light(hour: float) | Dictionary | Light to match the sky: sun, sun_energy, fill, fill_energy, ambient, ambient_energy |
new_lamp_light(colour: Color, reach := 14.0, energy := 2.0) | OmniLight3D | A jewel-coloured point light. A phone lights each mesh with at most eight |
set_backdrop_hour(hour: float) | nothing | Sets the 2D backdrop's sky to an hour |
set_bloom(amount: float) | nothing | How strongly bright colour glows: 0 for none, 0.45 unless a game says |
| Constant | Value | What it is |
|---|---|---|
BACKDROP_LAYER | -128 | The backdrop's canvas layer. A 3D game with a fixed camera shows the backdrop with Environment.BG_CANVAS and this as its max layer |
NIGHT | 22.0 | Any hour from here until dawn gets the night sky |