text
node is that it is hard to draw a paragraph, in other words multiple lines of text. Of course you could call text
many times but you have to be careful with keeping a record of the previous row's height and font. Applying a paint to the whole paragraph was not possible. Not anymore! text
node is now capable of understanding multiline text, just make sure to separate each line with the '\n' char (yes it must be that char, no '\r\n' nor '\f' nonsense), here is a sample
Here is the code
Notice how the gradient is applied to all rows of text in a seamless way.
text
node also supports a new property: spacing
, that will let you tweak how much space should be taken into consideration between each row of text. The next feature for this node would be to allow setting the horizontal alignment (and perhaps vertical too), right now you could say that text is always left-aligned with respect to x
.Keep on Groovying!