Processing-Tutorial: Exploring Wave-Figures

In this spontaneous Processing coding-session, I solve one of the assignments from my online course “Bauhaus Coding Workshop” available on my website. Here some very important concepts like loops, waves and mapping come together.

Bauhaus Coding Workshop


By loading the video, you agree to YouTube’s privacy policy.
Learn more

Load video

The Code

void setup() {
  size(1200, 900);

void draw() {
  translate(width/2, height/2);
  float mag = 400;
  float s = 15;
  for (int i = 0; i < 100; i++) {
    float w = map(sin(radians(frameCount)), -1, 1, -100, 100);
    float wave1 = map(tan(radians(frameCount * 0.8 + i + w)), -1, 1, -100, 100);
    float wave2 = map(tan(radians(frameCount + i)), -1, 1, -mag, mag);
    float c = map(sin(radians(frameCount * 5 + i)), -1, 1, 0, 255);
    rect(wave1, wave2, s, s);

Published by Tim on Saturday June 5, 2021

Last modified on January 17th, 2022 at 8:45



How to build the folder structure?

Processing Sessions Sketching Strategies

The best programming language for Creative Coding in 2022

Open Source Processing Tips Writings

I challenged Daniel Shiffman and here’s his response


A mockup-design-tool built with Processing

Apps Processing Projects Tools

Processing Community Day 2021 Recap

Community PCD Processing Writings

BlendModes in Processing

Processing Sessions

How to work with Layers in Processing?

Processing Sessions

Random Composition

Processing Sessions

New Course: Copy and Paste


Building a Poster Design Tool

Processing Sessions

Random Collage Generator

Processing Sessions

Processing Community Day 2021 – the recordings

Community PCD Processing Talks

PCD2021 – Sander Sturing

Community PCD Processing Talks

PCD2021 – Q&A with Casey Reas

Community PCD Processing Talks

Processing-Tutorial: A Grid of Arcs

Processing Tutorials

Interactive Grid System (Livestream)

Processing Tutorials

Processing-Tutorial: Render Videos with the Movie Maker

Processing Tutorials

Creative Coding Manifesto 2021

Films Philosophy Processing Stories Writings