Created
January 27, 2020 02:07
-
-
Save volfegan/fd54b79e8bcfb45c9792155e4cb74614 to your computer and use it in GitHub Desktop.
This is how I imagine databases search for a query. Scanning data on multidimensional locations
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
//based on https://twitter.com/ntsutae/status/1220199448891944963 | |
float C=0, W=720; | |
float S=.25; //speed | |
void setup() { | |
size(720, 720, P3D); | |
} | |
void draw() { | |
clear(); | |
C+=S; | |
translate(W/2,W/2); | |
for (float i=120; i<360; i+=S) { | |
float d=noise(i-C)*PI; | |
fill(map(sin(d), -1, 1, 255, 128), 10); | |
push(); | |
translate(cos(d)*2*i, sin(d*2)*i, 480); | |
box(W/2.4, W/2.4, W/2.4); | |
pop(); | |
} | |
// Saves each frame as frame000001.png, frame000002.png, etc. | |
//saveFrame("frame######.png"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment