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 |
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
// 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 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; |
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
// 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.*; |
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
// 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; |
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
// 2D shape transitions | |
// | |
// Mathematics and Processing code by Waldeck Schützer (@infinitymathart) | |
// Motion blur template by @davidbeesandbombs, explanation/article: https://bleuje.com/tutorial6/ | |
// Rotater transition by Etienne Jacob (@etinjcb) | |
// | |
import complexnumbers.*; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; |
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
// Knots with digits or texture | |
// | |
// Processing code and Mathematics by Waldeck Schutzer (@infinitymathart) | |
// Based on code by Etienne Jacob (@etinjcb) | |
// Motion blur template by @davebeesandbombs, explanation/article: https://bleuje.com/tutorial6/ | |
// See the license information at the end of this file. | |
final boolean recording = true; | |
final boolean reverse = false; | |
final boolean draw_digits = true; // Digits or texture? |
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
// Torus with texture | |
// | |
// Processing code and Mathematics by Waldeck Schutzer (@infinitymathart) | |
// Based on code by Etienne Jacob (@etinjcb) | |
// Motion blur template by @davebeesandbombs, explanation/article: https://bleuje.com/tutorial6/ | |
// See the license information at the end of this file. | |
final boolean recording = false; | |
final boolean reverse = true; |
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
// note : if you're on github gist and want to copy paste this code, you can click on the "Raw" button | |
// and then do Ctrl A, Ctrl C, Ctrl V | |
// (code below by Kurt Spencer, slightly modified code to run as Processing tab) | |
// maybe you should rather use this new (improved) version of the noise instead : https://github.com/KdotJPG/OpenSimplex2 | |
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* v1.1 (October 5, 2014) |
OlderNewer