.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2025 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.svg._nanosvg

.. highlight:: python



.. _wx.svg._nanosvg.SVGgradientStop:

==========================================================================================================================================
|phoenix_title|  **wx.svg._nanosvg.SVGgradientStop**
==========================================================================================================================================

A Gradient stop is an offset and a color, which is used when drawing gradients.



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>SVGgradientStop</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.svg._nanosvg.SVGgradientStop_inheritance.svg" alt="Inheritance diagram of SVGgradientStop" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.svg._nanosvg.SVGgradientStop.html" title="A Gradient stop is an offset and a color, which is used when drawing gradients." alt="" coords="5,5,286,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGgradientStop.color`                                   SVGgradientStop.color: uint
:attr:`~wx.svg._nanosvg.SVGgradientStop.color_rgba`                              SVGgradientStop.color_rgba: tuple
:attr:`~wx.svg._nanosvg.SVGgradientStop.offset`                                  SVGgradientStop.offset: float
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: SVGgradientStop(object)

   A Gradient stop is an offset and a color, which is used when drawing gradients.

   .. attribute:: color

      SVGgradientStop.color: uint


   .. attribute:: color_rgba

      SVGgradientStop.color_rgba: tuple
      
      Returns color as a RGBA tuple 


   .. attribute:: offset

      SVGgradientStop.offset: float


