A Brush is a very simple drawing instrument that fills a given shape with a single flat color. This is sufficient for many GUI drawing tasks, for example, providing the colour of some text.
However, if something more 'artistic' is what you're looking for, check out the other classes of brush - LinearGradientBrush, PathGradientBrush, HatchBrush and TextureBrush.
Sets an exisiting brush to a new color. This can be useful to avoid having to allocate memory for a new Brush object, or giving the garbage collector more to do by destroying an old one.
# File GUI_Classes.rb, line 84 def setColor #DUMMY end
Generated with the Darkfish Rdoc Generator 2.