Session 06: Arrays, objects, and particles
Session 06 includes arrays, objects, particle systems, and motion fields.
Aalto University, 2025-2026
Sessions, web sketches, Lab, PDF slides, Processing source links, and student studies.
Session 06 includes arrays, objects, particle systems, and motion fields.
Search the 2025-2026 materials by topic, format, or session.
No course materials match that search.
These p5.js companion sketches run directly in the page.
PDFs and .pde files remain available. Sketches with a browser version are embedded here and also linked to the Lab.
Use this to see how simple shapes become a reusable drawFace() function.
drawFace() more than once.Move the pointer to control a circle, a mirrored square, and the background color.
Move across an 8 by 8 grid to see how conditionals react to pointer position.
Watch a ball reverse at the canvas edges and change color on each bounce.
Use an animated sine wave to see how time changes repeated drawing.
Use a rotating noise-driven grid to connect nested loops with smooth randomness.
Click to regenerate a composition made from one reusable abstract-shape function.
Move the pointer to control a polar-coordinate spiral?s speed and radius.
T for trails, then change turns, curve, or color mode.Move the pointer to emit fading particles and see how arrays of objects behave.
Watch particles follow a smooth Perlin-noise field and wrap around the canvas.
The gallery contains 22 local mirrors from the OpenProcessing course curation, with source files and original links.
Open the gallery to view the course copies of Study 1 and Study 2 sketches.
Filter by Study 1, Study 2, interaction, generative, mouse, or keyboard.
Each study includes a local source link, plus the original OpenProcessing page for attribution and backup.
Edit the p5.js companion sketches directly in the browser.
Choose a sketch, edit its JavaScript, and press Run your changes. The preview updates in the same page.
Use the lab for small experiments: color values, sizes, speeds, loop counts, and function parameters.
The original .pde files are linked from session pages and sketch cards.
The web sketches are translations, not replacements. Use this quick map when you want to move between the browser versions and the classroom Processing files.
In Processing, you use size(600, 400) inside setup(). In p5.js, you use createCanvas(600, 400) inside function setup().
In Processing, you write void draw(). In p5.js, you write function draw(). Both redraw continuously unless you stop them.
In Processing, you use pushMatrix() and popMatrix(). In p5.js, you use the shorter push() and pop().
In Processing, you often declare types such as float x. In p5.js, you usually use let x, const x, or class fields in JavaScript.
Read the PDF slides without leaving the course page. Choose a session and the reader updates in place.
Use these prompts to turn weekly sketches into larger creative work for the course.
Make a small interactive sketch using mouse position, color, and at least one custom function.
Make a generative composition using loops, randomness or noise, and one visual system you can clearly adjust.
Develop an interactive or generative artwork that combines code structure with a personal visual direction.
Use a session page when you want that week's slides, web sketches, instructions, and Processing material together.
Shapes, color, canvas coordinates, and reusable drawing code.
Mouse position, clicks, mapping values, and dynamic color.
Decision-making, repeated actions, frame-based motion, and state.
Nested loops, sine waves, random walks, Perlin noise, and recursion.
Named behavior, parameterized drawing, randomness, and recursion.
Object-oriented thinking, arrays, particle systems, and smooth motion fields.