Inner Shadow
type: "innershadow" · SVG filter: does not change the geometry; the browser applies it to the whole object after the rest of its stack. · Editor menu: Filters.
Inner shadow: a blurred, shifted shadow cast inwards from the edges, only inside the drawing. It follows the contour, so necks and dents shade too. Stack several for coloured rims lit from different sides.
Parameters
Section titled “Parameters”| Param | Type | Default | Range | Notes |
|---|---|---|---|---|
offset |
point | [4,6] |
[x, y], px | unit: px |
blur |
number | 10 |
min 0, max 200, step 0.5 | unit: px |
color |
color | "#000000" |
#rrggbb | |
opacity |
number | 0.6 |
min 0, max 1, step 0.01 | shown as a percentage in the editor (0.5 is 50 %) |
Missing parameters take their default. Numbers and angles (and points and colours) can be animated with a track { on: "modifier", modifier: "<id>", param: "<name>" } unless noted.
In a scene
Section titled “In a scene”Inside a node’s stack (effects run top to bottom):
{ "id": "innershadow-1", "type": "innershadow", "params": { "offset": [ 4, 6 ], "blur": 10, "color": "#000000", "opacity": 0.6 }}Generated from the schema of @svertik/engine. See the index.