Draws a string at the specified coordinates.

Properties

Property

Default

Notes

text

'Groovy'

 

x

0

 

y

0

 

Example

font( face: "Helvetica", style: Font.ITALIC, size: 48 )
text( text: 'Groovy rocks!', x: 20, y: 20, borderColor: 'darkGreen', fill: 'green' )