Skip to content

FoliageColors beta ​

Interface of @v12-engine/client

ts
export interface FoliageColors

The colours of grass (FoliageLook.colors), and of models where a field says so (vary, tint, patches)

Members ​

dry ​

ts
dry?: {
        to: FoliageColor;
        amount: number;
    };

Dried out: every colour towards to, by amount (0 to 1). What a game changes with the season (setLook). A fourth of to is turned towards too

ts
foot?: FoliageColor;

The colour at the foot of the blades, 0 to 1 each: of the grass, not of models. The old color. How much of it is seen too where a fourth is given (FoliageColor): up a blade from the foot's to the tip's, as the colour goes

ground ​

ts
ground?: number;

How much of the colour of the ground under it it takes, 0 to 1: 0 when left out

hue ​

ts
hue?: number;

How much each differs in hue, 0 to 1 (all the way round): 0 when left out

patches ​

ts
patches?: FoliageNoise & {
        to: FoliageColor;
    };

Patches of another colour over the field (dry spots), by FoliageNoise: towards to, by amount at most. None when left out. A fourth of to is how much the patches are seen, turned towards as far as the colour is: thin patches

saturation ​

ts
saturation?: number;

How much each differs in how strong its colour is, 0 to 1: 0 when left out. Of the grass, not of models

stops ​

ts
stops?: readonly {
        at: number;
        color: FoliageColor;
    }[];

More colours up a blade, each at a height (at, 0 the foot to 1 the tip), between the foot's and the tip's; how much is seen there with a fourth

tint ​

ts
tint?: FoliageColor;

A colour everything is multiplied by, models too: white when left out. Its fourth is how much of the whole style is seen ([1, 1, 1, 0.5]: half), of the grass and of models

tip ​

ts
tip?: FoliageColor;

The colour at the tips of the blades. The old tip. With a fourth, how much of the tips is seen: grass that fades out towards its tips

vary ​

ts
vary?: number;

How much lighter and darker each is than the next, 0 to 1: 0.12 when left out, 0 for models