.. wxPython Phoenix documentation

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

   Copyright: (c) 2011-2018 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 id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>SVGpaint</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.svg._nanosvg.SVGpaint_inheritance.png" alt="Inheritance diagram of SVGpaint" usemap="#dummy" class="inheritance"/></center>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.svg._nanosvg.SVGpaint.html" title="wx.svg._nanosvg.SVGpaint" alt="" coords="5,5,204,35"/> </map> 
   </p>
   </div>

|


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

================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGpaint.color`                                          
:attr:`~wx.svg._nanosvg.SVGpaint.color_rgba`                                     Returns color as a RGBA tuple
:attr:`~wx.svg._nanosvg.SVGpaint.gradient`                                       
:attr:`~wx.svg._nanosvg.SVGpaint.type`                                           Flag indicating the type of paint info, solid color or type of gradient
================================================================================ ================================================================================


|


|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_rgba

      Returns color as a RGBA tuple


   .. attribute:: type

      Flag indicating the type of paint info, solid color or type of gradient


