# 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`
- `mapToColor`
- `mapToTextureCoordinate`

## Methods

### createTexture

`ScalarMapper.``createTexture`()

  Return type: | Texture

### mapToColor

`ScalarMapper.``mapToColor`(scalarValue)

  Arguments: | scalarValue (`number`) – None
  Return type: | Color4Like

### mapToTextureCoordinate

`ScalarMapper.``mapToTextureCoordinate`(scalarValue)

  Arguments: | scalarValue (`number`) – None
  Return type: | Vec2Like

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Web in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...