Color.clamp

Clamps color values between min and max

struct Color
void
clamp
(
float min = 0.0f
,
float max = 1.0f
)

Parameters

min float

Minimal allowed value

max float

Maximal allowed value

Meta