06.01.2013 Views

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

314 <strong>Learning</strong> <strong>Processing</strong><br />

In addition <strong>to</strong> textAlign( ) and textWidth( ), <strong>Processing</strong> also off ers the functions textLeading( ), textMode( ) ,<br />

and textSize( ) for additional display functionality. Th ese functions are not necessary for the examples<br />

covered in this chapter, but you can explore them on your own in the <strong>Processing</strong> reference.<br />

17.5<br />

Exercise 17-6: Create a s<strong>to</strong>ck ticker that loops over and over. As the last s<strong>to</strong>ck enters the<br />

window, the fi rst s<strong>to</strong>ck appears immediately <strong>to</strong> its right.<br />

Text Mosaic<br />

Combining what we learned in Chapters 15 and 16 about the pixel array, we can use the pixels of an<br />

image <strong>to</strong> create a mosaic of characters. Th is is an extension of the video mirror code in Chapter 16. (Note<br />

that in Example 17-4, new text-related code is in bold.) See Figure 17.6 .<br />

fi g. 17.6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!