.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 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
Inheritance diagram for class SVGpaint:
| |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