Inner Shadow

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

Casts a soft shadow inward from the edges of the input graphics, as if they were cut out of the surface.

Interface

Inputs

ParameterDetailsPossible Types
Content

The content the shadow falls inside.

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 edges facing it cast the shadow away from.

Default: 120°

Number[]
Number
Distance

How far the shadow falls from the edges casting it.

Default: 5 px

Number[]
Number
Choke

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

Default: 0%

Number[]
Number
Size

How far the shadow reaches in from the content's edges.

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

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[]