# DitherAlgorithm enum

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum DitherAlgorithm
```

Enumerates the predefined dithering algorithms.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Nearest | 0 | Simply finds the colour in the palette that best resembles the current pixel. |
| FloydSteinberg | 1 | Error diffusion with a fairly small radius. The resulting dithering is very fine-grained. |
| Jarvis | 2 | Error diffusion with a larger radius. Result is typically clean and sharp. Jarvis-Judice-Ninke dithering is very similar to Stucki dithering. |
| Stucki | 3 | Error diffusion with a larger radius. Result is typically clean and sharp. Stucki dithering is very similar to Jarvis-Judice-Ninke dithering. |
| Atkinson | 4 | Partial error diffusion. Preserves detail, but light and dark areas may appear blown out. |
