.. # split from OESpicoliFunctions.rst:602


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OESetSurfaceColor

.. oe:function:: OESetSurfaceColor

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OESetSurfaceColor(OESurface& surf, float r, float g, float b,
                                float a = 1.0f)
         bool OESetSurfaceColor(OESurface& surf, unsigned char r,
                                unsigned char g, unsigned char b,
                                unsigned char a = 255)

   .. oe:language:: python

      .. oe:api:: python

         OESetSurfaceColor(surf: OESurface, r: float, g: float, b: float,
                           a: float = 1.0) -> bool
         OESetSurfaceColor(surf: OESurface, r: str, g: str, b: str,
                           a: str = 255) -> bool

   Sets the color of the entire surface to the specified color. 


