Last active
May 28, 2022 10:10
-
-
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)
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
//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