GraphicsBuilder - Paints - GradientPaint Add comment to Wiki View in Wiki Edit Wiki page Printable Version

Creates a linear gradient between 2 colors.

Properties

Property

Default

Notes

x1

0

 

y1

0

 

x2

100

 

y2

0

 

color1

'black'

 

color2

'white'

 

cycle

false

 

stretch

false

Scales the gradient to fit the Shape's bounds

fit

true

Scales the gradient retaining the aspect ratio

Examples

4 rectangles, each one with a diagonal gradient

Different settings for fit, stretch and cycle

 

Search

Results of your search request can come from various sources: the Groovy website itself, the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.

  By  -  pages  -  views  - last modified