ScalarMapper

class cee.ScalarMapper()

Abstract base class for scalar mappers.

The scalar mapper offers two services:

  • Map from a scalar value (domain value) to a texture coordinate or a color
  • Create a texture from the scalar mapper that can be used for rendering and corresponds with the texture coordinates produced.

Methods

cee.ScalarMapper.createTexture()
createTexture(): Texture

Returns: Texture

cee.ScalarMapper.mapToColor()
mapToColor(scalarValue: number): Color4Like

Parameters

scalarValue: number

Returns: Color4Like

cee.ScalarMapper.mapToTextureCoordinate()
mapToTextureCoordinate(scalarValue: number): Vec2Like

Parameters

scalarValue: number

Returns: Vec2Like