Drop Shadow

This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.

Casts a soft shadow of the input graphics' silhouette beneath them.

Interface

Inputs

ParameterDetailsPossible Types
Content

The content casting the shadow.

Primary Input

Color[]
Color
Gradient[]
Gradient
Graphic[]
Graphic
Raster[]
Raster
String[]
String
Vector[]
Vector
Color

The shadow's color, with its opacity.

Default: #000000bf

Color[]
Color
Angle

The direction the light comes from, which the shadow falls away from.

Default: 120°

Number[]
Number
Distance

How far the shadow falls from the content.

Default: 5 px

Number[]
Number
Spread

How much of the size hardens the shadow by growing its edge outward, rather than softening it.

Default: 0%

Number[]
Number
Size

How far the shadow reaches past the content's silhouette.

Default: 5 px

Number[]
Number
Contour

Reshapes how the shadow's strength falls off across its size.

Default: TransferCurve([DVec2(0.0, 0.0), DVec2(1.0, 1.0)])

TransferCurve[]
TransferCurve
Knockout

Hides the shadow behind the content even where the content's fill is faded.

Default: true

Bool[]
Bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Graphic
Graphic[]
Vector
Vector[]
Raster
Raster[]
Color
Color[]
Gradient
Gradient[]
String
String[]