curlSheen

The band of light running up a curl.

curlSheen(frame: GatherFrame, opts: {highlight: ArgSpec; softness: ArgSpec}): PeelShade

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

highlight (0–1) is its strength. softness (0–1) runs from a tight gloss to a broad satin.

Parameters

NameTypeNotes
frameGatherFrame
opts{highlight: ArgSpec; softness: ArgSpec}

Example

curlSheen(peel, {highlight: p('highlight'), softness: p('highlightSoftness')})

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.
  • curlShading — The darkening in the crook of a curl, easing to full brightness at the lip.

Used by

PagePeel