Conversion | Image Quantization Library (image-q)

preserve

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

  xyz2rgb.ts - part of Image Quantization Library

## Index

### Variables

- _refX
- _refY
- _refZ

### Functions

- _xyz2lab_helper
- lab2rgb
- lab2xyz
- rgb2hsl
- rgb2lab
- rgb2xyz
- xyz2lab
- xyz2rgb

## Variables

### _refX

_refX: number

- Defined in conversion/lab2xyz.ts:10
- Defined in conversion/xyz2lab.ts:10

### _refY

_refY: number

- Defined in conversion/lab2xyz.ts:11
- Defined in conversion/xyz2lab.ts:11

### _refZ

_refZ: number

- Defined in conversion/lab2xyz.ts:12
- Defined in conversion/xyz2lab.ts:12

## Functions

### _xyz2lab_helper

- _xyz2lab_helper(value: number): number

- - Defined in conversion/xyz2lab.ts:14

  #### Parameters

  - ##### value: number

  #### Returns number

### lab2rgb

- lab2rgb(L: number, a: number, b: number): object

- - Defined in conversion/lab2rgb.ts:10

  #### Parameters

  - ##### L: number

  - ##### a: number

  - ##### b: number

  #### Returns object

  - ##### b: number

  - ##### g: number

  - ##### r: number

### lab2xyz

- lab2xyz(L: number, a: number, b: number): object

- - Defined in conversion/lab2xyz.ts:15

  #### Parameters

  - ##### L: number

  - ##### a: number

  - ##### b: number

  #### Returns object

  - ##### x: number

  - ##### y: number

  - ##### z: number

### rgb2hsl

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

- - Defined in conversion/rgb2hsl.ts:17

  Calculate HSL from RGB Hue is in degrees [0..360] Lightness: [0..1] Saturation: [0..1] http://web.archive.org/web/20060914040436/http://local.wasp.uwa.edu.au/~pbourke/colour/hsl/

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  #### Returns object

  - ##### h: number

  - ##### l: number

  - ##### s: number

### rgb2lab

- rgb2lab(r: number, g: number, b: number): object

- - Defined in conversion/rgb2lab.ts:10

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  #### Returns object

  - ##### L: number

  - ##### a: number

  - ##### b: number

### rgb2xyz

- rgb2xyz(r: number, g: number, b: number): object

- - Defined in conversion/rgb2xyz.ts:10

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  #### Returns object

  - ##### x: number

  - ##### y: number

  - ##### z: number

### xyz2lab

- xyz2lab(x: number, y: number, z: number): object

- - Defined in conversion/xyz2lab.ts:18

  #### Parameters

  - ##### x: number

  - ##### y: number

  - ##### z: number

  #### Returns object

  - ##### L: number

  - ##### a: number

  - ##### b: number

### xyz2rgb

- xyz2rgb(x: number, y: number, z: number): object

- - Defined in conversion/xyz2rgb.ts:11

  #### Parameters

  - ##### x: number

  - ##### y: number

  - ##### z: number

  #### Returns object

  - ##### b: number

  - ##### g: number

  - ##### r: number

Generated using TypeDoc