linework

The engraving look: the layer inside redrawn as ink lines that swell where it is dark.

linework(slots: {
    style: PropRef
    frequency: PropRef
    angle: PropRef
    center: PropRef
    relief: PropRef
    waviness: PropRef
    contrast: PropRef
    ink: PropRef
    paper: PropRef
}): GatherEffect

Import effects from shaders/std and use effects.stylize.linework.

Closes the recipe and returns the effect for effect:. style is a compile-time select: 'line' (one set of parallel lines), 'crosshatch' (more sets appear in the shadows) or 'spiral' (one line coiling out from center, a position prop). frequency is how many lines span the canvas height. angle is in degrees. relief (0 to 2) is how far brightness pushes the lines sideways, waviness (0 to 1) how much they meander, and contrast (0.25 to 3) the tone curve before inking. ink and paper are colors.

Parameters

NameTypeNotes
slots`{
style: PropRef
frequency: PropRef
angle: PropRef
center: PropRef
relief: PropRef
waviness: PropRef
contrast: PropRef
ink: PropRef
paper: PropRef

}` | |

Example

effect: linework({style: p('style'), frequency: p('frequency'), angle: p('angle'), center: p('center'), relief: p('relief'), waviness: p('waviness'), contrast: p('contrast'), ink: p('inkColor'), paper: p('paperColor')})

Tip. Set blendWithChildren: false on the definition. The lines replace the layer rather than sit on it.

See also

  • chalkSketch — The chalk-drawing look: edges become chalk strokes and dark areas fill with cross-hatching.

Used by

Engraving