© Jeanine Meyer  2018
Jeanine MeyerProgramming 101https://doi.org/10.1007/978-1-4842-3697-0_6

6. Images, Graphics, and Building on Prior Work

Jeanine Meyer1 
(1)
Mt Kisco, New York, USA
 

This chapter focuses on two examples, one with images and one with graphics. The first example displays an image with instructions to press any key to switch to and from grayscale. The image, by the way, is not from a file in the data folder of the sketch, but acquired on loading the sketch, from an address on the Web. The program will not work if the computer is not connected to the Web. For this example, the program asks the user to enter a URL. This makes use of the technique described in Chapter 5 for entering text. Allowing the user the ability to type in an address ...

Get Programming 101: The How and Why of Programming Revealed Using the Processing Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.