brown.core.brush

classes

A specifier for fill patterns.

In general, Pens are responsible for drawing shape outlines while Brushes are responsible for filling in shapes.

__init__ (color='#000000', pattern=BrushPattern.SOLID) permalink view source

arguments:

color (Color or args for Color): The brush color

pattern (BrushPattern or int enum value): The brush fill pattern. Defaults to a solid color.

properties

color: Color The color for the brush permalink view source

pattern: BrushPattern The fill pattern. permalink view source

class methods

from_existing (brush) permalink view source

Clone a brush.

arguments:

brush (Brush): An existing brush.

returns:

inherited from Brush