new geo.webgl.lookupTable2D(arg){geo.webgl.lookupTable2D}
Create a new instance of class webgl_lookupTable2D.
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
arg |
object |
Options object.
|
Returns:
Type | Description |
---|---|
geo.webgl.lookupTable2D |
Extends
- vgl.texture
Methods
-
colorTable(val){Array.<number>|this}
-
Get/set color table.
Name Type Description val
Array.<number> optional An array of RGBARGBA... integers on a scale of [0, 255].
undefined
to get the current value.Returns:
Type Description Array.<number> | this -
maxWidth(){number}
-
Get maxWidth value.
Returns:
Type Description number The maxWidth of the texture used. -
setup(renderState)
-
Create lookup table, initialize parameters, and bind data to it.
Name Type Description renderState
vgl.renderState An object that contains the context used for drawing.