---
title: "sineStroke"
description: "A wavy line that travels along itself, drawn as a soft band."
group: "paint"
groupTitle: "Painting"
categoryId: "figures"
categorySlug: "figures"
categoryTitle: "Figures & strokes"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/figures.ts#L126"
---

# sineStroke

A wavy line that travels along itself, drawn as a soft band.

```ts
sineStroke(slots: SineStrokeSlots): Paint
```

Import `figures` from `shaders/std` and use `figures.sineStroke`.

The wave is centered on `position` and turned by `angle`. It moves on the layer's clock, so declare `animatedTime: {speed: 'speed'}`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `SineStrokeSlots` |  |

## Example

```ts
paint: sineStroke({position: p('position'), angle: p('angle'), frequency: p('frequency'), amplitude: p('amplitude'), thickness: p('thickness'), softness: p('softness'), color: p('color')})
```

## See also

- [`strokedSegment`](/docs/primitives/figures/strokedsegment) — A straight line between two points, solid, dashed or dotted, with square or round ends.

## Used by

[SineWave](/docs/components/sinewave)