{"id":9,"date":"2009-05-27T15:47:41","date_gmt":"2009-05-27T19:47:41","guid":{"rendered":"http:\/\/nexttext.local\/wordpress\/?page_id=9"},"modified":"2016-03-28T11:53:45","modified_gmt":"2016-03-28T15:53:45","slug":"examples","status":"publish","type":"page","link":"http:\/\/nexttext.local\/examples\/","title":{"rendered":"Examples"},"content":{"rendered":"<p class=\"sectionTitle\">Examples<\/p>\n<div>The following applications are examples built with NextText for Processing that should help you understand the diverse features of the library.<\/div>\n<p><\/p>\n<div style=\"margin-bottom:15px;\">\n<div style=\"float:left; margin-right:15px;\"><a href=\"\/applet\/puller\/index.html\" class=\"option\" title=\"Puller\" rel=\"shadowbox\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-41\" title=\"puller\" src=\"http:\/\/nexttext.local\/wp-content\/uploads\/2009\/05\/puller.png\" alt=\"puller\" width=\"240\" height=\"240\"  \/><\/a><\/div>\n<div><strong><a class=\"option\" title=\"Puller\" rel=\"shadowbox\" href=\"\/applet\/puller\/index.html\">Puller<\/a><\/strong><\/p>\n<p>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.<\/p>\n<p>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.<\/p><\/div>\n<div style=\"clear:both;\"><\/div>\n<\/div>\n<div style=\"margin-bottom:15px;\">\n<div style=\"float:left; margin-right:15px;\"><a class=\"option\" title=\"Stats Clock\" rel=\"shadowbox\"  href=\"\/applet\/statsclock\/index.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-43\" src=\"http:\/\/nexttext.local\/wp-content\/uploads\/2009\/05\/statsclock.png\" alt=\"statsclock\" width=\"240\" height=\"240\" \/><\/a><\/div>\n<div>\n<strong><a class=\"option\" title=\"Stats Clock\" rel=\"shadowbox\" href=\"\/applet\/statsclock\/index.html\">Stats Clock<\/a><\/strong><br \/>\nThis 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.\n<\/div>\n<div style=\"clear:both;\"><\/div>\n<\/div>\n<div style=\"margin-bottom:15px;\">\n<div style=\"float:left; margin-right:15px;\"><a class=\"option\" title=\"Rebound\" rel=\"shadowbox\" href=\"\/applet\/rebound\/index.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-44\" title=\"rebound\" src=\"http:\/\/nexttext.local\/wp-content\/uploads\/2009\/05\/rebound.png\" alt=\"rebound\" width=\"240\" height=\"240\" \/><\/a><\/div>\n<div>\n<strong><a class=\"option\" title=\"Rebound\" rel=\"shadowbox\" href=\"\/applet\/rebound\/index.html\">Rebound<\/a><\/strong><br \/>\nThis 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.<\/div>\n<div style=\"clear:both;\"><\/div>\n<\/div>\n<div style=\"margin-bottom:15px;\">\n<div style=\"float:left; margin-right:15px;\"><a class=\"option\" title=\"What They Speak When They Speak To Me\" rel=\"shadowbox\" href=\"\/applet\/wtswtstm\/index.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45\" title=\"wtswtstm\" src=\"http:\/\/nexttext.local\/wp-content\/uploads\/2009\/05\/wtswtstm.jpg\" alt=\"wtswtstm\" width=\"240\" height=\"240\" \/><\/a><\/div>\n<div>\n<div  style=\"margin-bottom:10px;\"><strong><a class=\"option\" title=\"What They Speak When They Speak To Me\" rel=\"shadowbox\" href=\"\/applet\/wtswtstm\/index.html\">What They Speak When They Speak To Me<\/a><\/strong><br \/>\nThis 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:<\/div>\n<div style=\"margin-bottom:10px;\">\nSwim moves the glyphs slightly so that they appear to be floating.<br \/>\nRotateBack rotates glyphs back to an upright position.<br \/>\nIsInSnake checks whether or not a glyph should follow the path.<br \/>\nFollowLeaderPath attracts a glyph and its siblings on the path.\n<\/div>\n<div>It is about 350 lines of code spread over 7 classes.<\/div>\n<\/div>\n<div style=\"clear:both;\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Examples The following applications are examples built with NextText for Processing that should help you understand the diverse features of the library. 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, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/pages\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":38,"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/pages\/9\/revisions"}],"predecessor-version":[{"id":414,"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/pages\/9\/revisions\/414"}],"wp:attachment":[{"href":"http:\/\/nexttext.local\/wp-json\/wp\/v2\/media?parent=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}