- Source
Members
(static) range_max
Lookup tables for image colour display.
- Source
Methods
(static) buildLut(func) → {Array}
Build a LUT of size range_max.
Name | Type | Description |
---|---|---|
func | function | The i to lut function. |
- Source
THe LUT.
- Type:
- Array
(static) id(i) → {number}
Identity, returns i.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) invId(i) → {number}
Returns range_max minus one minus i.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) max(_i) → {number}
Max function: returns range_max minus one.
Name | Type | Description |
---|---|---|
_i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) maxFirstThird(i) → {number}
Returns range_max minus one for the first third of i, otherwise 0.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) maxSecondThird(i) → {number}
Returns range_max minus one from one third to two thirds of i, otherwise 0.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) maxThirdThird(i) → {number}
Returns range_max minus one from one third to two thirds of i, otherwise 0.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) toMaxFirstThird(i) → {number}
Ramp to range_max minus one on the first third values.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) toMaxSecondThird(i) → {number}
Ramp to range_max minus one on the second third values. otherwise return 0 for the first third and range_max minus one for the last third.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) toMaxThirdThird(i) → {number}
Ramp to range_max minus one on the last third values. otherwise return 0.
Name | Type | Description |
---|---|---|
i | number | The input index. |
- Source
The lut value.
- Type:
- number
(static) zero(_i) → {number}
Returns zero.
Name | Type | Description |
---|---|---|
_i | number | The input index. |
- Source
The lut value.
- Type:
- number