API: assemblage
Function: shadowed()
lifecycle-kit
lifecycle-kit / assemblage / shadowed
Function: shadowed()
shadowed(
light,coverage):number
Defined in: assemblage/shadow.ts:244
Apply a coverage fraction to a light level.
Multiplicative rather than subtractive: a shadow removes a proportion of whatever light was reaching a surface, so a part already facing away from the light does not go doubly dark for being covered as well. Subtracting a fixed amount would push the unlit side below ambient, which is exactly the unreadable silhouette ambient exists to prevent.
Parameters
light
number
coverage
number
Returns
number
