NearestColor | Image Quantization Library (image-q)

### Hierarchy

- NearestColor

### Implements

- IImageDitherer

## Index

### Constructors

- constructor

### Properties

- _distance

### Methods

- quantize

## Constructors

### constructor

- new NearestColor(colorDistanceCalculator: IDistanceCalculator): NearestColor

- - Defined in image/nearestColor.ts:13

  #### Parameters

  - ##### colorDistanceCalculator: IDistanceCalculator

  #### Returns NearestColor

## Properties

### Private _distance

_distance: IDistanceCalculator

- Defined in image/nearestColor.ts:13

## Methods

### quantize

- quantize(pointBuffer: PointContainer, palette: Palette): PointContainer

- - Defined in image/nearestColor.ts:19

  #### Parameters

  - ##### pointBuffer: PointContainer

  - ##### palette: Palette

  #### Returns PointContainer

Generated using TypeDoc