Skip to main content

Function: withDropShadow()

withDropShadow<T>(mobject, options): VGroup

Defined in: src/mobjects/effects/dropShadow.ts:81

Return a VGroup with a drop shadow behind mobject.

The source is copied for every shadow layer, so it is never recolored, moved, or scaled. The returned group holds the shadow layers first (drawn behind) and the original last (drawn in front).

Type Parameters​

T​

T extends VMobject

Parameters​

mobject​

T

Source VMobject (shape, text, group, ...)

options​

DropShadowOptions = {}

Shadow options; see DropShadowOptions

Returns​

VGroup

A VGroup = [shadow layers..., original]