-->

Examples

The following applications are examples built with NextText for Processing that should help you understand the diverse features of the library.

puller
Puller

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.

statsclock
Stats Clock
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.
rebound
Rebound
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.
wtswtstm
What They Speak When They Speak To Me
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:
Swim moves the glyphs slightly so that they appear to be floating.
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.
It is about 350 lines of code spread over 7 classes.

2006 - 2008 © Obx Labs/Jason Lewis

CC-GNU GPL
This software is licensed under the CC-GNU GPL.