Skip to content
pixi-silk
GitHub repository
Function

maxChroma

import { maxChroma } from 'pixi-silk/ui/color';
function maxChroma(L: number, h: number): number;

Largest chroma at this lightness and hue that still fits in sRGB, found by bisection. 0 for black and white.

Parameters#

ParameterType
Lnumber
hnumber

Returns#

number