---
title: "tiles"
description: "Repeats a field `count` times, always wrapping."
group: "paint"
groupTitle: "Painting"
categoryId: "paint"
categorySlug: "paint"
categoryTitle: "Fields, palettes & ramps"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/fields.ts#L399"
---

# tiles

Repeats a field `count` times, always wrapping.

```ts
tiles(field: Field, count: FieldScalar): Field
```

Import `paint` from `shaders/std` and use `paint.tiles`.

Made for sweeps: `tiles(dist.conic(...), 4)` gives four sectors. Any count works, including fractions.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `field` | `Field` |  |
| `count` | `FieldScalar` |  |

## Example

```ts
paint: rampOver(tiles(dist.conic({center: p('center'), rotation: p('rotation')}), p('repeat')), stops(p('colorSpace')))
```

## See also

- [`rings`](/docs/primitives/paint/rings) — Repeats a field as concentric bands.

## Used by

[ConicGradient](/docs/components/conicgradient)