Skip to content

Instantly share code, notes, and snippets.

View wschutzer's full-sized avatar

Waldeck Schützer, Ph.D. wschutzer

View GitHub Profile
@wschutzer
wschutzer / sketch_240930b_hilbert.pde
Created September 30, 2024 19:57
Hilbert's dream 2
// Hilbert's dream
// ---------------
//
// Processing code by Waldeck Schützer (@infinitymathart)
// Motion blur template by @davidbeesandbombs, explanation/article: https://bleuje.com/tutorial6/
// Idea and concept by @etinjcb.
//
PVector[][] paths; // Array to store paths for each level
PVector[] currentPath;
@wschutzer
wschutzer / sketch_240929b_trefoil.pde
Created September 30, 2024 16:03
Trefoil knot with digits
// Digits on a trefoil knot
// ------------------------
//
// Processing code by Waldeck Schützer (@infinitymathart)
// Motion blur template by @beesandbombs, explanation/article: https://bleuje.com/tutorial6/
// Idea and concept by @etinjcb
//
import peasy.*;
import processing.core.PMatrix3D;
@wschutzer
wschutzer / sketch_240925b_mobiusring.pde
Created September 26, 2024 03:46
sketch_240925b_mobiusring
import peasy.*;
import processing.core.PMatrix3D;
PeasyCam cam;
boolean recording = true;
int frame_size = recording ? 2160 : 800;
float fac = frame_size/800.0;
int numSegments = 50; // Number of segments along the Möbius ring (higher means smoother)
float ringRadius = 200*fac; // Radius of the Möbius ring