3 ms·
This is so cool! Great job. sin(i+t) : https://doersino.github.io/tixyz/?code=sin(i%2Bt) https://doersino.github.io/tixyz/?code=sin(i%2Bt) If you stop that on
by yesenadam 6y ago
This is so cool! Great job.
sin(i+t) : https://doersino.github.io/tixyz/?code=sin(i%2Bt) https://doersino.github.io/tixyz/?code=sin(i%2Bt)
If you stop that one rotating with the mouse, it's some kind of brain-damaging illusion. Or thousands of illusions, most of which do something weird to your eyes–it looks very different from different angles. Hmm that is such a great way of generating (2D) optical illusions!
- peanutz454 6y agoThis is so cool, I am still unable to clearly comprehend what is going on at one layer. I wonder if there is some way to set others layers to zero!
- doersino 6y agoThere sure is – one way is using the good ol' conditional operator: (x==3)?sin(i+t):0 Result: https://doersino.github.io/tixyz/?code=%28x%3D%3D3%29%3Fsin%28i%2Bt%29%3A0 https://doersino.github.io/tixyz/?code=%28x%3D%3D3%29%3Fsin%... Another is multiplying with a boolean expression that's automatically cast to 0 or 1 depending on its value: sin(i+t)*(x==3) Result: https://doersino.github.io/tixyz/?code=sin%28i%2Bt%29*%28x%3D%3D3%29 https://doersino.github.io/tixyz/?code=sin%28i%2Bt%29*%28x%3...