Skip to content

Instantly share code, notes, and snippets.

View brandedux's full-sized avatar

Branded UX brandedux

View GitHub Profile
@brandedux
brandedux / torusTwist.pde
Created May 6, 2018 21:00 — forked from anonymous/torusTwist.pde
torus twist, by dave @beesandbombs
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);