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_241002a_ringbar.pde
Last active October 10, 2024 13:05
Ring and bar pendulums
// Ring and bar double pendulums
//
// Mathematics and Processing code by Waldeck Schützer (@infinitymathart)
import java.lang.Math;
boolean recording = false;
boolean use_border = true;
int FPS = 60;
int duration = 3*60;
float text_t = 20.0*3/2;
// The tunnel is a mobius ring with digits seen from the inside.
//
// Mathematics and Processing code by Waldeck Schützer (@infinitymathart)
// Motion blur template by @davidbeesandbombs, explanation/article: https://bleuje.com/tutorial6/
// modified by @infinitymathart to add the chromatic aberration effect.
// Idea and concept for flipping digits on a surface by @etinjcb
// First million digits of pi from: https://pi2e.ch/blog/2017/03/10/pi-digits-download/ file: pi_dec_1m.txt
//
//
import peasy.*;
@wschutzer
wschutzer / sketch_240930d_knotdigits.pde
Created October 1, 2024 03:12
Digits on a knot tube
// Digits on a knot tube
// ---------------------
//
// Mathematics and Processing code by Waldeck Schützer (@infinitymathart)
// Motion blur template by @davidbeesandbombs, explanation/article: https://bleuje.com/tutorial6/
// Idea and concept for flipping digits on a surface by @etinjcb
//
import peasy.*;
import processing.core.PMatrix3D;
@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