brush
Set brush parameters
Call signature:
brush(color=None, alpha=None, id=None)
Help text:
All arguments are optional.
color may be a named color (i.e., one of krgbcmyw), or a 3-digit or a 6-digit string, or 'none' or '' for none.
alpha must be a number between 0 and 1.
id specifies an id.
Example:

import qplot as qp

import numpy as np

qp.figure('brush', 3, 3)

qp.brush('777')

qp.fill([0, 1, 1, 0], [0, 0, 1, 1])

qp.brush('r', .25, id='A')

qp.fill([.5, 1.5, 1.5, .5], [.5, .5, 1.5, 1.5])

qp.brush('none')

qp.fill([.2, .7, .7, .2], [.8, .8, 1.3, 1.3])

qp.brush('b')

qp.fill([.2, .4, .4, .2], [.2, .2, .4, .4])

qp.brush(id='A', alpha=.75)

qp.fill([1.2, 1.4, 1.4, 1.2], [.3, .3, .8, .8])