@microsoft/fast-colors > normalize
normalize() function
Scales an input to a number between 0 and 1
Signature:export declare function normalize(i: number, min: number, max: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
i | number | a number between min and max |
min | number | the max value |
max | number | the min value |
number