.. highlightlang:: us .. index:: XYSetFillColor .. _xysetfillcolor: XYSetFillColor ============== .. us.tag XYSetFillColor ENGLISH XYSet Changed5900 :ref:`XYSetFillColor` sets the fill color for the area under the curve. .. function:: bool = XYSetFillColor(hData, rvColorRGB) bool = XYSetFillColor(hData, rvColorARGB) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`XYCreate` or :ref:`TYCreate`. .. uparam:: rvColorRGB *rvColorRGB* is a vector with 3 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvColorRGB[1] - Red (0-255) * - rvColorRGB[2] - Green (0-255) * - rvColorRGB[3] - Blue (0-255) .. uparam:: rvColorARGB *rvColorARGB* is a vector with 4 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvColorARGB[1] - Alpha: 0 = Transparent, 255 = Opaque * - rvColorARGB[2] - Red (0-255) * - rvColorARGB[3] - Green (0-255) * - rvColorARGB[4] - Blue (0-255) .. us.example **Example** :: * XYSetFillColor(hData, [255, 255, 0]) * XYShowFill(hData, TRUE) .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2017 - Transparency. .. seealso:: :ref:`overview-xy-datasets`, :ref:`XYGetFillColor`, :ref:`XYIsFillVisible`, :ref:`XYCreate` :sub:`id-516122`