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.