Skip to content

nearestEnvironment beta ​

Function of @v12-engine/client

ts
export declare function nearestEnvironment(look: MapEnvironment | undefined, presets: Readonly<Record<string, MapEnvironment>>): {
    name: string;
    distance: number;
} | undefined;

The named environment a map's look is nearest to, and how near (0 the same, 1 nothing alike): none when there are none