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


For this mission, we created a virtual 3D object using a mathematical function that generates our vertices in a cylindrical coordinate system and then turns it into a physical object using a desktop 3D printer or an online printing service.

In the first task, we created a closed, circular 2D shape using a function that takes an angle as input and calculates a radius for that angle. We converted this point from the polar to the Cartesian coordinate system and used it as a vertex for our shape. We then added a GUI using the controlP5 framework to enable the users of our sketch to change the parameters of our function.

In the second task, we extruded the shape that we created along the z axis and created a three-dimensional cylindrical form. We changed to the so-called cylindrical coordinate system, which uses an angle, a radius, and a height to define its points. We extended our function to take the height as a second parameter and added four more sliders to our GUI to influence...