---
title: "coverage.cells"
description: "A grid of square cells `size` wide."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.reveal"
categorySlug: "effects-reveal"
categoryTitle: "Reveals & wipes"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/reveal.ts#L224"
---

# coverage.cells

A grid of square cells `size` wide.

```ts
coverage.cells(size: ArgSpec): CellCoverage
```

Import `effects` from `shaders/std` and use `effects.reveal.coverage.cells`.

`size` is a fraction of the canvas width (0.01–0.5). Finish with `.diamond()`, `.checker()` or `.shuffled()` to say how the cells go.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `size` | `ArgSpec` |  |

## Example

```ts
coverage: coverage.cells(p('blockSize')).checker()
```

## See also

- [`coverage.noise`](/docs/primitives/effects-reveal/coverage-noise) — Soft blobs eating the image away, the classic film dissolve.

## Used by

[BlockDissolve](/docs/components/blockdissolve), [CheckerWipe](/docs/components/checkerwipe), [DiamondWipe](/docs/components/diamondwipe)