Skip to content

1681-engine / pixel / groundShadow

Function: groundShadow() ​

ts
function groundShadow(
   g, 
   cx, 
   cy, 
   rx, 
   ry, 
   core?, 
   rim?
): void;

Defined in: src/pixel/propKit.ts:48

A soft shadow thrown down and to the right onto the ground, laid only on empty pixels (call it after litOutline, or the outline would ring the shadow): a darker core and a fainter rim, by default a translucent violet.

Parameters ​

ParameterTypeDefault value
gPixelGridundefined
cxnumberundefined
cynumberundefined
rxnumberundefined
rynumberundefined
corenumberSHADOW_CORE
rimnumberSHADOW_RIM

Returns ​

void

Released under the MIT License.