1681-engine / pixel / hueShade
Function: hueShade() ​
ts
function hueShade(
c,
f,
material
): number;Defined in: src/pixel/ramp.ts:145
c shaded by f the way shade would (f < 1 darkens, f > 1 lifts toward white), with the hue moved the way material moves it. f === 1 returns c itself. A colour with too little saturation to have a hue (steel, grey wool, white linen) takes the material's hue outright, faintly, so a grey coat still has a violet shadow.
Parameters ​
| Parameter | Type |
|---|---|
c | number |
f | number |
material | Material |
Returns ​
number