Skip to content

Instantly share code, notes, and snippets.

@volfegan
Last active May 28, 2022 10:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volfegan/13a20a98a6f1f43e515f1a66b70817be to your computer and use it in GitHub Desktop.
Save volfegan/13a20a98a6f1f43e515f1a66b70817be to your computer and use it in GitHub Desktop.
Some nice shape from the inequality: tan(x)*tan(y) > sin(x*y)
//remix https://www.dwitter.net/d/23922
float t;
void setup() {
size(1280, 720);
noStroke();
fill(-1);
clear();
}
void draw() {
translate(width/2, height/2);
t+=1;
float A=.03;
for (int X=480, Y=(0|50*(int)t)%539-270;X>=-480;--X) {
if (tan(A*X)*tan(A*Y)>sin(A*A*X*Y)) rect(X,Y,1,1);
}
//saveFrame("frame_######.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment