Skip to content

1681-engine / pixel / outlineOf

Function: outlineOf() ​

ts
function outlineOf(c): number;

Defined in: src/pixel/ramp.ts:199

The selective-outline tone of a fill: its own hue, cooled and pushed dark enough to hold an edge against grass (value at most 0.3), so the outline on the lit side is the fill's own darkest shade instead of flat black.

Parameters ​

ParameterType
cnumber

Returns ​

number

Released under the MIT License.