Book Image

Processing 2: Creative Coding Hotshot

By : Nikolaus Gradwohl
Book Image

Processing 2: Creative Coding Hotshot

By: Nikolaus Gradwohl

Overview of this book

Processing makes it convenient for developers, artists, and designers to create their own projects easily and efficiently. Processing offers you a platform for expressing your ideas and engaging audiences in new ways. This book teaches you everything you need to know to explore new frontiers in animation and interactivity with the help of Processing."Processing 2: Creative Coding Hotshot' will present you with nine exciting projects that will take you beyond the basics and show you how you can make your programs see, hear, and even feel! With these projects, you will also learn how to build your own hardware controllers and integrate devices such as a Kinect senor board in your Processing sketches.Processing is an exciting programming environment for programmers and visual artists alike that makes it easier to create interactive programs.Through nine complete projects, "Processing 2: Creative Coding Hotshot' will help you explore the exciting possibilities that this open source language provides. The topics we will cover range from creating robot - actors performing Shakespeare's "Romeo and Juliet", to generating objects for 3D printing, and you will learn how to run your processing sketches nearly anywhere from a desktop computer to a browser or a mobile device.
Table of Contents (16 chapters)
Processing 2: Creative Coding Hotshot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mission Accomplished


Our mission was to implement a sketch that makes it easier to communicate the current emotional status of a user. We have accomplished this by creating a smiley that has various controllable facial parameters. In task 1, we implemented the drawing routine that generates our smiley, but changing the parameters meant changing a variable and running the sketch again.

To tackle this problem, we added some GUI elements to our sketch in task 2 to simplify the interaction with our sketch for the user. We didn't use any existing GUI libraries, but instead created the sliders from scratch by implementing the mouse event callback functions and drawing some rectangles.

In task 3, we created the necessary code to authenticate our app with twitter.com and created a method that allows our app to post status updates for a Twitter user. We created a consumer key and a consumer secret key on the Twitter developer site and asked the user for permission to tweet using a request URL and pin...