Public Types | |
| enum | Blend { Normal = 0, Multiply = 1, Add = 2, Subtract = 3, Difference = 4, Darken = 5, Lighten = 6, Hue = 7, Saturation = 8, Color = 9, Luminance = 10 } |
| The available blending modes that determines the blending color from the current (a) and layer (b) colors. More... | |
Public Member Functions | |
| void | add (Brush brush) |
| Add an opaque layer to the brush using normal blend mode. | |
| void | add (Brush brush, Blend blend) |
| Add an opaque layer to the brush. | |
| void | add (Brush brush, Blend blend, ubyte alpha) |
| Add a layer to the brush. | |
| Color | eval (float x, float y) |
| Cycle through the layers on the brush, sampling at each point and blending the colors together. | |
Static Public Member Functions | |
| Color | blendColor (Color a, Color b, Blend m) |
| Get the blending color from the current color (a), the layer color (b), and the blending mode (m). | |
Public Attributes | |
| Layer[] | layers |
| The list of layers in the brush, modified using add. | |
|
|
||||||||||||
|
Cycle through the layers on the brush, sampling at each point and blending the colors together. The blending mode of the first layer is ignored (but its opacity is not). Reimplemented from Brush. |
|
|
The list of layers in the brush, modified using add. You can modify this list to your pleasure; however, pointers to it will be invalidated by an add call. |
1.3.2