Skip to content

Documentation / @ripl/3d / shadeFaceColor

Function: shadeFaceColor() ​

Call Signature ​

shadeFaceColor(baseColor, brightness): string

Defined in: 3d/src/core/shading.ts:68

Shades a color by a brightness factor (0–1), darkening or lightening the RGB channels.

Parameters ​

ParameterType
baseColorstring
brightnessnumber

Returns ​

string

Call Signature ​

shadeFaceColor(baseColor, brightness): string

Defined in: 3d/src/core/shading.ts:70

Shades a color by a brightness factor (0–1), darkening or lightening the RGB channels.

Parameters ​

ParameterType
baseColorColorRGBA
brightnessnumber

Returns ​

string