introduction to generative art with processing
TRANSCRIPT
![Page 1: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/1.jpg)
Introduction to Generative Art with Processing
creative tech
![Page 2: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/2.jpg)
What is Processing?
Open Source Programming Language
Made specifically for Visual Designers
Java Application, simplified syntax
Developed at MIT Media Labs by Casey Reas and Benjamin Fry in 2001
![Page 3: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/3.jpg)
![Page 4: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/4.jpg)
Learn Processing
Processing:A Programming Handbook for Visual Designers and Artists, 2nd Edition
by Casey Reas and Ben Fry
Getting Started with Processing
(O’Reilly)
by Casey Reas and Ben Fry
Generative Art: A practical guide using processing
by Matt Pearson
![Page 5: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/5.jpg)
Learn Processing
The Nature of Code: Simulating Natural Systems with Processing
by Daniel Shiffman
![Page 7: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/7.jpg)
Diverse Outputs
Stills
Animations
Image Manipulation
Performance Art
![Page 8: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/8.jpg)
![Page 9: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/9.jpg)
![Page 10: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/10.jpg)
![Page 11: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/11.jpg)
![Page 12: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/12.jpg)
![Page 13: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/13.jpg)
![Page 14: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/14.jpg)
![Page 15: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/15.jpg)
![Page 16: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/16.jpg)
![Page 17: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/17.jpg)
![Page 18: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/18.jpg)
![Page 19: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/19.jpg)
Now we will make some art
![Page 20: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/20.jpg)
Installation
processing.org/download/?processing
Version 2.2.1
Unzip
Open It
![Page 21: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/21.jpg)
![Page 22: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/22.jpg)
Hello, World
![Page 23: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/23.jpg)
void setup() {
}
void draw() {
}
Try running it, by clicking on the play button in the top left
![Page 24: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/24.jpg)
void setup() {
size(600,600);
background(#000000)
}
void draw() {
}
Try running it. You should now have a bigger black box
![Page 25: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/25.jpg)
void setup() {
size(600,600);
background(#000000);
}
void draw() {
ellipse(100, 100, 50, 50);
fill(#FF4067);
}
"Hello, world” in the form of a pink circle
![Page 26: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/26.jpg)
Important: we are working in a coordinate space
100
100
600
600
![Page 27: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/27.jpg)
...
ellipse(100, 100, 50, 50);
...
![Page 28: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/28.jpg)
void setup() {
size(600,600);
background(#000000);
}
void draw() {
for (int i=100; i<600; i=i+100) {
ellipse( i, 100, 50, 50);
fill(#FF4067);
}
}
Now that we know it’s a grid, we can exploit that and make our art cooler. Do this by looping over the x-coordinate.
![Page 29: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/29.jpg)
void setup() {
size(600,600);
background(#000000);
}
void draw() {
for (int i=100; i<600; i=i+100) {
ellipse( i, 100, 50, 50);
fill(#FF4067);
}
for (int i=100; i<600; i=i+100) {
ellipse (100, i, 50, 50);
fill(#FF4067);
}
}
![Page 30: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/30.jpg)
Loop?
This means that we do something to a variable in our function repeatedly, for however many times we tell it to do it.
for (int i=100; i<600; i=i+100) {
ellipse(i, 100, 50, 50);
}
initial value
when to stop
interval
The program generates: ellipse(100, 100, 50, 50), ellipse(200, 100, 50, 50), ellipse(300, 100, 50, 50), ellipse(400, 100, 50, 50), ellipse(500, 100, 50, 50)
![Page 31: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/31.jpg)
![Page 32: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/32.jpg)
void setup() {
size(600,600);
background(#000000);
}
void draw() {
for (int i=100; i<600; i=i+100) {
for (int j=100; j<600; j=j+100) {
ellipse( i, j, 50, 50);
fill(#FF4067);
}
}
}
![Page 33: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/33.jpg)
void setup() {
size(600,600);
background(#000000);
}
void draw() {
for (int i=100; i<600; i=i+100) {
for (int j=100; j<600; j=j+100) {
ellipse( i, j, 50, 50);
fill(#FF4067);
}
}
}
MouseX, MouseY
![Page 34: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/34.jpg)
![Page 35: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/35.jpg)
Branding with data
![Page 36: Introduction to Generative Art with Processing](https://reader031.vdocument.in/reader031/viewer/2022013102/55cdad1cbb61eb4a6a8b467f/html5/thumbnails/36.jpg)
Questions?