threejs-worldgen
    Preparing search index...

    Interface PopulationStyle

    Colours shared by renderPopulationMap and the 3D overlay. All #rrggbb, plain JSON.

    interface PopulationStyle {
        densityRamp: [number, string][];
        habitabilityRamp: [number, string][];
        landUse: Record<LandUse, string>;
        lightRamp: [number, string][];
        maxDensity: number;
        networks: Record<NetworkType, string>;
        settlement: string;
    }
    Index
    densityRamp: [number, string][]

    Density ramp: [t, colour] stops, t = log(1 + density) / log(1 + maxDensity).

    habitabilityRamp: [number, string][]

    Habitability ramp over 0…1.

    landUse: Record<LandUse, string>

    Colour per land use.

    lightRamp: [number, string][]

    Night-light ramp over brightness 0…1.

    maxDensity: number

    People per km² at the top of the density ramp.

    networks: Record<NetworkType, string>

    Colour per network type.

    settlement: string

    Settlement marker colour.