1681-engine / pixel / litOutline
Function: litOutline() ​
ts
function litOutline(g, dark?): void;Defined in: src/pixel/propKit.ts:27
The selective outline a prop takes, lit from the upper left like the map: the same ring a plain outline lays, but full dark only where the silhouette meets the ground (under it) and on its shadow side (the right); along the top and the left it is the darkest tone of the fill it borders (outlineOf), so a lit edge reads as the thing's own shade rather than a sticker's line. Translucent pixels (a cast shadow on the ground) are not part of the silhouette.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
g | PixelGrid | undefined |
dark | number | P.outline |
Returns ​
void