⚠️ This site is under development, some artefacts may be missing or incomplete.
PIXEL UI
IsColorLight

IsColorLight

boolean PIXEL.IsColorLight( Color color )

Description

Determines whether a color is considered light (greater than 0.5 lightness).

Arguments

Color color

The color to check.

Returns

boolean

true if the color is considered light.


Color:IsLight

boolean Color:IsLight()

Description

Determines whether the color the method was called on is considered light (greater than 0.5 lightness).

Returns

boolean

true if the color is considered light.