Processing workshop

first impressions- Looks monotonous but its more intricate than I expected and can be hard to know what you've done wrong.

  • This workshop is being able to be efficient, the brief is to create a 100 variations of book designs.
  • Processing is the tool we used
  • its coding language, a community and it helps with people who think visually.
screenshot 1

Notes

the curly brackets is where you put the code in

anything after // is just a note

size and background is the command (it is always followed by words)

every single line ends in a ;

the hashtag is the hex colour

syntax highlighting tells the user if its right or wrong

A variable in coding a what you design

the ones with decimal points (called floats)

the whole numbers are (integers)

Keys

blue = commands

now I can se what wrong with ai I (circle -=circles +1);

Should be (circle = circle +1);

orange = descriptions of variables

green= creating a loop

grey are comments

red is wrong

functions become bold

void setup() {
size(740, 1050); // Set the sketch size
background(#262626); // Set the background color

int rows = 0;
while (rows < 6) {
int circles = 0;
while (circles < 6) {
float size = random(25, 75);
fill(random(255), random(255), random(255)); // Random color for each circle
noStroke();
ellipse(120 + circles * 100, 430 + rows * 100, size, size);
circles++; // Increment circles to avoid infinite loop
}
rows++; // Increment rows to go to the next row
}
}