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

createTexture

cee.ScalarMapper.createTexture()
Return type

cee.Texture

mapToColor

cee.ScalarMapper.mapToColor(scalarValue)
Arguments
  • scalarValue (number) –

Return type

cee.Color4Like

mapToTextureCoordinate

cee.ScalarMapper.mapToTextureCoordinate(scalarValue)
Arguments
  • scalarValue (number) –

Return type

cee.Vec2Like