This is a fairly simple sketch, which shows basic functions provided by the library. In this example, you can see how to load a font, insert text using that font, and especially, how to make text behave in response to mouse interaction. It is about 30 lines of code.
Clicking the first mouse button pulls the text towards the cursor. Dragging with the second mouse button moves the text. Clicking the third mouse button reforms the text.
This example displays interesting facts that occur every second, minute, and hour. It demonstrates the layering properties of NextText Pages by having TextObjects at different depths that overlap with each other and with other drawn elements. It is about 75 lines of code.
This example lets you throw glyphs around, deconstructing the sentence. It is an example of how to use the NextText physics package, and how to subclass existing Actions to modify their behaviour. It is about 85 lines of code spread over 3 classes.
This example is a more complex application. A poem is broken down into clusters of text which float around in empty space. When a letter is dragged, all the following letters in the stanza come into focus and follow the line drawn by the mouse path. This application was written primarily with Behaviours found in the library but also with four custom ones:
RotateBack rotates glyphs back to an upright position.
IsInSnake checks whether or not a glyph should follow the path.
FollowLeaderPath attracts a glyph and its siblings on the path.