Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Paints define how color patterns can be applied to a Shape's contents either passing them as a parameter on fill or nesting them inside a Shape definition.

All paints support the following additional properties

  • asPaint: creates the paint but does not apply it to the current context, useful for reusing paints in several shapes.

Alphabetical list

GradientPaint
LinearGradient
Paint
RadialGradient
TexturePaint