14.04.2014 Views

Hello Processing - Vula

Hello Processing - Vula

Hello Processing - Vula

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

An Introduction To Programming With <strong>Processing</strong><br />

<strong>Hello</strong> <strong>Processing</strong> 44<br />

Install <strong>Processing</strong> 44<br />

Sketches 44<br />

<strong>Hello</strong> World Program 1.0 45<br />

The println() Function 47<br />

Syntax And Syntax Errors 48<br />

Logical Errors 50<br />

Display Window 50<br />

Standardized Coding Practices 52<br />

Comments 52<br />

Whitespace 53<br />

Program Notes 54<br />

Cartesian Graph and the <strong>Processing</strong> Coordinate System 54<br />

<strong>Hello</strong> Display Window: <strong>Hello</strong> World 1.1 56<br />

text() 56<br />

Program Notes 57<br />

Formatting Text 58<br />

Color 59<br />

Drawing 62<br />

2D Primitives 62<br />

The Origin of an Ellipse 63<br />

Aliasing 66<br />

Smile 66<br />

Angles in <strong>Processing</strong> 66<br />

Editing the Smile 69<br />

Adding Eyes 72<br />

Drawing Irregular Shapes 73<br />

Order, Order! 78<br />

Finishing the Sketch 78<br />

Programming Paradigms 80<br />

Datatyping Categories 81<br />

Primitive Data Types 81<br />

<strong>Processing</strong> API Data Types 82<br />

User Defined Complex Data Types 83<br />

PImage 83<br />

The Design and Layout Program 86<br />

Program Notes for Interface01.pde 86<br />

Table Of Contents 4

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

Saved successfully!

Ooh no, something went wrong!