Skip to main content
Version: 1.x

@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

ParameterTypeDescription
inumbera number between min and max
minnumberthe max value
maxnumberthe min value
Returns:

number