.. 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.SVGgradient:

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

A gradient is a method used to fade from one color to another, either
linearly or radially.



|

|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>SVGgradient</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.svg._nanosvg.SVGgradient_inheritance.svg" alt="Inheritance diagram of SVGgradient" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.svg._nanosvg.SVGgradient.html" title="A gradient is a method used to fade from one color to another, either" alt="" coords="5,5,253,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGgradient.fx`                                          SVGgradient.fx: float
:attr:`~wx.svg._nanosvg.SVGgradient.fy`                                          SVGgradient.fy: float
:attr:`~wx.svg._nanosvg.SVGgradient.spread`                                      SVGgradient.spread: int
:attr:`~wx.svg._nanosvg.SVGgradient.stops`                                       A generator that iterates over the :class:`SVGgradientStop` objects contained in the SVGgradient
:attr:`~wx.svg._nanosvg.SVGgradient.xform`                                       SVGgradient.xform: list
================================================================================ ================================================================================


|


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


.. class:: SVGgradient(object)

   A gradient is a method used to fade from one color to another, either
   linearly or radially.

   .. attribute:: fx

      SVGgradient.fx: float


   .. attribute:: fy

      SVGgradient.fy: float


   .. attribute:: spread

      SVGgradient.spread: int


   .. attribute:: stops

      A generator that iterates over the :class:`SVGgradientStop` objects contained in the SVGgradient


   .. attribute:: xform

      SVGgradient.xform: list
      
      The gradient's transform


