
############
ScalarMapper
############

.. js: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.
   
   
   Index
   =====
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~cee.ScalarMapper.createTexture`
   * :js:meth:`~cee.ScalarMapper.mapToColor`
   * :js:meth:`~cee.ScalarMapper.mapToTextureCoordinate`
   
   



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: cee.ScalarMapper.createTexture

      .. rst-class:: sig-pretty-signature
      
         | createTexture(): :js:class:`Texture <cee.Texture>`
      
      **Returns**\ : :js:class:`Texture <cee.Texture>`
      



.. js:method:: cee.ScalarMapper.mapToColor

      .. rst-class:: sig-pretty-signature
      
         | mapToColor(**scalarValue**\ : *number*\ ): :js:class:`Color4Like <cee.Color4Like>`
      
      **Parameters**
      
      
         **scalarValue**\ : *number*
      
      
      **Returns**\ : :js:class:`Color4Like <cee.Color4Like>`
      



.. js:method:: cee.ScalarMapper.mapToTextureCoordinate

      .. rst-class:: sig-pretty-signature
      
         | mapToTextureCoordinate(**scalarValue**\ : *number*\ ): :js:class:`Vec2Like <cee.Vec2Like>`
      
      **Parameters**
      
      
         **scalarValue**\ : *number*
      
      
      **Returns**\ : :js:class:`Vec2Like <cee.Vec2Like>`
      




