overhangShadow

The shadow a lifted curl casts on the flat page just past the crease.

overhangShadow(frame: GatherFrame, opts: {amount: ArgSpec; shadow: ArgSpec}): PeelShade

Import effects from shaders/std and use effects.blurs.overhangShadow.

amount is the same peel amount the frame uses. shadow (0–1) is the shadow's strength.

Parameters

NameTypeNotes
frameGatherFrame
opts{amount: ArgSpec; shadow: ArgSpec}

Example

overhangShadow(peel, {amount: p('amount'), shadow: p('shadow')})

See also

  • peelFrame — The geometry of a page curling up from one corner: where the curl reads the child from, how far it has turned, and how far each pixel is from the crease.
  • peelCompose — A finished page peel: the cast shadows, the flat page and the lit curl, layered back to front.
  • revealShadow — The shadow on the surface a peel reveals, just inside the crease.

Used by

PagePeel