saraimmtech

Module Journal - Generative Computer Graphics

16-09-2025 - Week 01

Introduction & Foundations

23-09-2025 - Week 02

Grids & Patterns

30-09-2025 - Week 03

Grids & Patterns

07-10-2025 - Week 04

Clock

How does your clock represent time differently from a real one?

What does cyclical vs linear mean in your design?

This code uses the current computer time to draw animated, circular arcs that represent hours, minutes, and seconds.

Circle-Drawing tool

This sketch makes a simple generative circle-drawing tool. Every time you click, it drops a randomly sized, randomly colored circle at the mouse position.

How it works:

Summary: Each click adds a new circle, building up a layered field of colors — a simple interactive generative composition where randomness and repetition create the pattern.

Etch A Sketch

This is an Etch A Sketch-style sketch built with p5.js. It uses an offscreen buffer as the “screen” that keeps the etched lines persistent while the main canvas draws the frame and controls.

Top-level data

Knob object

Setup

Draw loop

applyKnobMovement() — the important mapping

User interactions

Other small details

Summary (one-liner) It simulates an Etch A Sketch by converting knob rotation deltas into x/y stylus movement that draws persistent lines on an offscreen buffer; knobs are interactive with mouse + keyboard, and shaking clears the buffer.