Brushes
Instead of simple colors, you can use brushes to create more complex fills for your shapes. Brushes allow you to create gradients, patterns, textures, and other visual effects.
Note
For drawing with semi-transparent colors using brushes, you need:
- An image with RGBA format (see image types for more information)
- The proper composite effect set (see composite effects for details)
Solid Color Brush
The most basic brush is a solid color:
set {_brush} to new solid brush with color red
set {_shape} to new rectangle with width 80 and height 80 and brush {_brush}
Gradient Brushes
Gradient brushes create a smooth transition between multiple colors:
Pattern Brushes
Pattern brushes create repeating patterns:
Hatch Brushes
Hatch brushes create line-based patterns:
Special Effect Brushes
These brushes create more complex visual effects:
Texture Brush
You can use an existing image as a texture brush: