MapLayr
    Preparing search index...

    Interface ColorTransformationModeTimeOfDay

    The colour transformation phase is driven by the time of day at a given IANA time zone.

    interface ColorTransformationModeTimeOfDay {
        duration: number;
        evening: number;
        kind: "timeOfDay";
        morning: number;
        now?: () => Date;
        timeZone: string;
    }
    Index

    Properties

    duration: number

    The duration of each transition, in hours.

    evening: number

    The hour of day (0–24) at which the phase transitions from 0 (day) to 1 (night).

    kind: "timeOfDay"
    morning: number

    The hour of day (0–24) at which the phase transitions from 1 (night) to 0 (day).

    now?: () => Date

    Optional time source. Called each time the phase is re-evaluated; if omitted, the current wall clock is used. Provide this to drive the phase from a playback timeline, a scrubber, or any synthetic clock.

    timeZone: string

    The IANA time zone identifier (e.g. "Europe/London").