Processing_Shapes_Animations_Interactions (2)
Processing_Shapes_Animations_Interactions (2)
Processing.Create Shapes();
Antoine Hacheme
Default Functions
} }
Page Size
height height
Background Color
randomise value
from 0 to 500 From 20
To 300
Create Points
Green value
Position Functions
position y
Create Basics
Green value
Create Ellipse
position x width
position y height
Create Rectangle
point 1 point 2
position x width position x width round corners
point 1 point 3
position x width round round
Create a PShape variable Start adding vertex Stop adding vertex Display shape
position x
s.vertex(50, 0);
position y
Add Image
PImage img;
img = loadImage(“myImage.png”);
int i = 0; int i;
Antoine Hacheme
Update Variable
int x = 100; x = x + 1;
Update Variable
int timex = 1; x += 1;
Update Variable
if (condition) { else {
//statement //statement
} }
If Condition
if (x > height ) {
If Or
Or
Parametric Equations
Antoine Hacheme
Key Pressed
mouseX mouseY
Mouse Press
if (click == 0) {
click = 1;
Create an interger.(whole number) }
Assign a new value(1)
By making it not equal to anything,
to the integer click.
it will be equal to 0.
take the value from the float r object value variable value
and map assign it to another. from from
Hover Objects
int x = 100;
int y = 100;
int si = 50; ellipse(x, y, si, si);