.. role:: clio-readonly
   :class: clio-flag clio-flag-readonly

.. role:: clio-static
   :class: clio-flag clio-flag-static


######
Color4
######

.. js:class:: cee.Color4

   An immutable four component (RGBA) color.
   
   The color components (r,g,b,a) are in the range 0..1
   
   Note that this class is immutable.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.Color4.constructor`
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~cee.Color4.a`
   * :js:data:`~cee.Color4.b`
   * :js:data:`~cee.Color4.g`
   * :js:data:`~cee.Color4.r`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~cee.Color4.equals`
   * :js:meth:`~static cee.Color4.from`
   
   



.. rst-class:: kind-group kind-constructors

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


.. js:method:: cee.Color4.constructor

      .. rst-class:: sig-pretty-signature
      
         | Color4(**r**\ : *number*\ , **g**\ : *number*\ , **b**\ : *number*\ , **a**\ : *number*\ ): :js:class:`Color4 <cee.Color4>`
      
      Creates a color object
      
      **Parameters**
      
      
         **r**\ : *number*
      
         **g**\ : *number*
      
         **b**\ : *number*
      
         **a**\ : *number*
      
      
      **Returns**\ : :js:class:`Color4 <cee.Color4>`
      



.. rst-class:: kind-group kind-properties

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


.. js:data:: cee.Color4.a

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | a: *number*
      
      The alpha component of the color. Range: 0..1, where 1 is fully opaque and 0 is fully transparent (invisible)
      



.. js:data:: cee.Color4.b

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | b: *number*
      
      The blue component of the color. Range: 0..1
      



.. js:data:: cee.Color4.g

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | g: *number*
      
      The green component of the color. Range: 0..1
      



.. js:data:: cee.Color4.r

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | r: *number*
      
      The red component of the color. Range: 0..1
      



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

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


.. js:method:: cee.Color4.equals

      .. rst-class:: sig-pretty-signature
      
         | equals(**other**\ : :js:class:`Color4Like <cee.Color4Like>`\ ): *boolean*
      
      Returns true if the colors are equal
      
      **Parameters**
      
      
         **other**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      
      **Returns**\ : *boolean*
      



.. js:method:: static cee.Color4.from

      .. rst-class:: clio-flags
      
         :clio-static:`static`
      
      .. rst-class:: sig-pretty-signature
      
         | from(**color**\ : :js:class:`Color4Like <cee.Color4Like>`\ ): :js:class:`Color4 <cee.Color4>`
      
      Creates a Color4 instance from any object with r,g,b,a properties
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      
      **Returns**\ : :js:class:`Color4 <cee.Color4>`
      




