This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder