superclass: object% |
A brush-list% object maintains a list of brush% objects to avoid creating brushes repeatedly. A brush% object in a brush list cannot be mutated.
A global brush list, the-brush-list, is created automatically.
Creates an empty brush list.
| |||||||||||
| |||||||||||
| |||||||||||
color-name : string? | |||||||||||
|
Finds a brush of the given specification, or creates one and adds it to the list. See brush% for a further explanation of the arguments, which are the same as brush%’s initialization arguments.