---
title: "linework"
description: "The engraving look: the layer inside redrawn as ink lines that swell where it is dark."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.stylize"
categorySlug: "effects-stylize"
categoryTitle: "Stylize"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/stylize.ts#L552"
---

# linework

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

```ts
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

| Name | Type | Notes |
|---|---|---|
| `slots` | `{
    style: PropRef
    frequency: PropRef
    angle: PropRef
    center: PropRef
    relief: PropRef
    waviness: PropRef
    contrast: PropRef
    ink: PropRef
    paper: PropRef
}` |  |

## Example

```ts
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`](/docs/primitives/effects-stylize/chalksketch) — The chalk-drawing look: edges become chalk strokes and dark areas fill with cross-hatching.

## Used by

[Engraving](/docs/components/engraving)