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 ​
| Parameter | Type |
|---|---|
baseColor | string |
brightness | number |
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 ​
| Parameter | Type |
|---|---|
baseColor | ColorRGBA |
brightness | number |
Returns ​
string