Skip to content

Instantly share code, notes, and snippets.

@volfegan
Created April 20, 2020 05:33
Show Gist options
  • Select an option

  • Save volfegan/40f918daa8d75fba827e6a44de9c79dd to your computer and use it in GitHub Desktop.

Select an option

Save volfegan/40f918daa8d75fba827e6a44de9c79dd to your computer and use it in GitHub Desktop.
pseudo stellar map showing where home is
float i, x, y;
void setup() {
size(1080, 720);
background(0);
noStroke();
for (i=0; i<1500; i++) {
x=random(0, width);
y=random(0, height);
float alpha=random(20, 200);
fill(255, alpha);
float size = alpha/50;
circle(x, y, size);
if (random(1)>.997) filter(DILATE);
}
filter(BLUR, 2);
strokeWeight(2);
noFill();
stroke(255, 50);
for (x=0; x<width; x+=width/20)
for (y=0; y<height; y+=height/20)
if (random(1)>.5)
rect(x, y, width/20, height/10);
stroke(255, 150);
for (i=1; i<3; i++) {
line(0, i*height/4, width, i*height/4);
line(i*width/4, 0, i*width/4, height);
}
fill(255);
textSize(20);
text("<-You are Here", width*.69, height*.69);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment