Skip to content

Documentation / @ripl/3d / shadeFaceColor

Function: shadeFaceColor() ​

Call Signature ​

shadeFaceColor(baseColor, brightness): string

Defined in: 3d/src/shading.ts:42

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/shading.ts:44

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

Parameters ​

ParameterType
baseColorColorRGBA
brightnessnumber

Returns ​

string