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

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

This class defines how to fill or stroke a shape when rendering the SVG
image. In other words, how to create the pen or brush. It can be a solid
color, linear or radial gradients, etc.



|

|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>SVGpaint</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.svg._nanosvg.SVGpaint_inheritance.svg" alt="Inheritance diagram of SVGpaint" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.svg._nanosvg.SVGpaint.html" title="This class defines how to fill or stroke a shape when rendering the SVG" alt="" coords="5,5,230,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGpaint.color`                                          SVGpaint.color: uint
:attr:`~wx.svg._nanosvg.SVGpaint.color_rgba`                                     SVGpaint.color_rgba: tuple
:attr:`~wx.svg._nanosvg.SVGpaint.gradient`                                       SVGpaint.gradient: SVGgradient
:attr:`~wx.svg._nanosvg.SVGpaint.type`                                           SVGpaint.type: SVGpaintType
================================================================================ ================================================================================


|


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


.. class:: SVGpaint(object)

   This class defines how to fill or stroke a shape when rendering the SVG
   image. In other words, how to create the pen or brush. It can be a solid
   color, linear or radial gradients, etc.

   .. attribute:: color

      SVGpaint.color: uint


   .. attribute:: color_rgba

      SVGpaint.color_rgba: tuple
      
      Returns color as a RGBA tuple


   .. attribute:: gradient

      SVGpaint.gradient: SVGgradient


   .. attribute:: type

      SVGpaint.type: SVGpaintType
      
      Flag indicating the type of paint info, solid color or type of gradient


