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¶
Properties Summary¶
SVGpaint.color: uint |
|
SVGpaint.color_rgba: tuple |
|
SVGpaint.gradient: SVGgradient |
|
SVGpaint.type: SVGpaintType |
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.
Properties¶
- color¶
SVGpaint.color: uint
- color_rgba¶
SVGpaint.color_rgba: tuple Returns color as a RGBA tuple
- gradient¶
SVGpaint.gradient: SVGgradient
- type¶
SVGpaint.type: SVGpaintType Flag indicating the type of paint info, solid color or type of gradient