.. highlightlang:: us .. index:: OBJSetSolidColor .. _objsetsolidcolor: OBJSetSolidColor ================ .. us.tag OBJSetSolidColor ENGLISH draw-set Changed5900 :ref:`OBJSetSolidColor` sets the solid RGB color to fill a drawing object or diagram. .. function:: bool = OBJSetSolidColor(hobj, rvRGB) bool = OBJSetSolidColor(hobj, rvARGB) .. us.return **Return Value** *bool* is TRUE (1) when the function was successful and FALSE (0) if it was not. .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle, ellipse or layer (diagram) object. .. uparam:: rvRGB *rvRGB* is a vector with 3 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvRGB[1] - Red (0 to 255) * - rvRGB[2] - Green (0 to 255) * - rvRGB[3] - Blue (0 to 255) .. uparam:: rvARGB *rvARGB* is a vector with 4 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvARGB[1] - Transparency value (alpha) between 0 and 255. 0 is transparent and 255 is opaque. * - rvARGB[2] - Red (0 to 255) * - rvARGB[3] - Green (0 to 255) * - rvARGB[4] - Blue (0 to 255) .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2017 - Transparency: *rvARGB* .. seealso:: :ref:`overview-drawing-objects`, :ref:`OBJGetSolidColor` :sub:`id-253493`