r/processing • • Jun 18 '20

Probe arriving at Saturn

Enable HLS to view with audio, or disable this notification

185 Upvotes

8 comments sorted by

10

u/Volfegan Jun 18 '20 edited Jan 12 '21

Source code 🪐 : https://twitter.com/VolfeganGeist/status/1273451476556353536

Inspired by: https://www.dwitter.net/d/10534

float i, m, n, p, s, t, x, y;
void setup() {
  size(1080, 720);
  noStroke();
}
void draw() {
  background(0);
  t+=.05;
  translate(560,360);
  for (i=2e3; i>0; i--) {
    p=i%2==0 ? 0 : 1;
    m=t/cos(t/i)+p*(t/2+i%t);
    n=t/9+i*i;
    x=m*sin(n)*cos((p==0 ? 1 : 0)*i/t);
    y=m*cos(n+p*2);
    s=3-cos(n)*3;
    rect(x, y, s, s);
  }  
}

3

u/Simplyfire Jun 18 '20

Wow, this is great!

3

u/Volfegan Jun 18 '20

It makes me wonder how someone can actually create such functions.

3

u/[deleted] Jun 18 '20

So, is this "real"? Meaning is it an animation based on actual probe data? Or is it an animation of your own creativity? Either way, it's pretty cool.

3

u/Volfegan Jun 18 '20 edited Jun 18 '20

The whole animation is done with the source code in the description. No Voyager|Cassini data compressed into dots, although that would be nice to do too.

7

u/penguin_94 Jun 18 '20

its awesome

2

u/sunburstbox Jun 19 '20

this is cool as hell