Utils | Image Quantization Library (image-q)

preserve

  Copyright (c) 2015, Igor Bezkrovny All rights reserved. (MIT Licensed)

  pointContainer.ts - part of Image Quantization Library

## Index

### Classes

- HueGroup
- HueStatistics
- Palette
- Point
- PointContainer

### Variables

- Pa
- Pb
- Pg
- Pr
- hueGroups
- sort

### Functions

- hueGroup
- intInRange
- isArrSortStable
- makeBoxes
- max3
- min3
- rgb2hsl
- rgb2lum
- sortedHashKeys
- stableSort
- typeOf

## Variables

### Pa

Pa: number

- Defined in utils/utils.ts:14

### Pb

Pb: number

- Defined in utils/utils.ts:13

### Pg

Pg: number

- Defined in utils/utils.ts:12

### Pr

Pr: number

- Defined in utils/utils.ts:11

### hueGroups

hueGroups: number

- Defined in utils/palette.ts:14

### sort

sort: stableSort

- Defined in utils/utils.ts:111

## Functions

### hueGroup

- hueGroup(hue: any, segs: any): number

- - Defined in utils/utils.ts:97

  #### Parameters

  - ##### hue: any

  - ##### segs: any

  #### Returns number

### intInRange

- intInRange(value: any, low: any, high: any): number

- - Defined in utils/utils.ts:55

  #### Parameters

  - ##### value: any

  - ##### low: any

  - ##### high: any

  #### Returns number

### isArrSortStable

- isArrSortStable(): boolean

- - Defined in utils/utils.ts:17

  #### Returns boolean

### makeBoxes

- makeBoxes(width: any, height: any, stepX: any, stepY: any): Array<any>

- - Defined in utils/utils.ts:145

      partitions a rectangle of width x height into
      array of boxes stepX x stepY (or less)

  #### Parameters

  - ##### width: any

  - ##### height: any

  - ##### stepX: any

  - ##### stepY: any

  #### Returns Array<any>

### max3

- max3(a: any, b: any, c: any): any

- - Defined in utils/utils.ts:41

  #### Parameters

  - ##### a: any

  - ##### b: any

  - ##### c: any

  #### Returns any

### min3

- min3(a: any, b: any, c: any): any

- - Defined in utils/utils.ts:48

  #### Parameters

  - ##### a: any

  - ##### b: any

  - ##### c: any

  #### Returns any

### rgb2hsl

- rgb2hsl(r: any, g: any, b: any): object

- - Defined in utils/utils.ts:61

  #### Parameters

  - ##### r: any

  - ##### g: any

  - ##### b: any

  #### Returns object

  - ##### h: any

  - ##### l: number

  - ##### s: any

### rgb2lum

- rgb2lum(r: any, g: any, b: any): number

- - Defined in utils/utils.ts:31

  #### Parameters

  - ##### r: any

  - ##### g: any

  - ##### b: any

  #### Returns number

### sortedHashKeys

- sortedHashKeys(obj: any, desc: any): any

- - Defined in utils/utils.ts:160

  #### Parameters

  - ##### obj: any

  - ##### desc: any

  #### Returns any

### stableSort

- stableSort(fn: any): any

- - Defined in utils/utils.ts:114

  #### Parameters

  - ##### fn: any

  #### Returns any

### typeOf

- typeOf(val: any): any

- - Defined in utils/utils.ts:26

  #### Parameters

  - ##### val: any

  #### Returns any

Generated using TypeDoc