Minimal 16x16 Dots Coding Environment
tixy.land
tixy.land
I stored an expression in the URL fragment/hash, loaded it from there and eval-ed it. The hash symbol would break the expression, so it needs to be removed or commented out. Removing it by string manipulation would have exceeded the 32 character limit, so I went with commenting it out. That means you need to start any expression with "* /" (remove the space) to close the comment around the hash symbol.
The hover text of the example link gives you a good idea of what is happening.
Have fun!
Random animation, 47 characters payload:
https://tixy.land/?code=eval(%27%2F*%27%2Bparent.location.ha...
Reminds me of bytebeats, dwitter, etc. http://canonical.org/%7Ekragen/bytebeat/ https://www.dwitter.net/
Not as good as some here, but here is an animated sinus function: https://tixy.land/?code=y%3D%3D%7E%7E%288-7*Math.sin%28t*5%2...
Tip: Writing ~~ is much more space efficient than Math.floor
https://tixy.land/?code=Math.sin%28y%2Bt*2%29-Math.cos%28x-t...
https://tixy.land/?code=Math.sin%28Math.atan%28%28y%29%2F%28...
https://tixy.land/?code=Math.log%28Math.sin%28t%29*5%2Bx%2Fy...
Edit: I don't even know what's happening in this one https://tixy.land/?code=Math.sin%28i%26t%29*%28Math.clz32%28...
(looks like it auto-adds `Math.` for you now)
https://tixy.land/?code=i%26x%26%28y*Math.sin%28t%29%29
You can have lots of fun mixing the bitwise ops with trig functions!
// skip `Math.` to use methods
// and props like `sin` or `PI`
https://tixy.land/?code=1-t%252%2B%28x-8%29*%28y-8%29%25%7E%...
https://tixy.land/?code=1-t%252-%28%28x-9%29%5E%28y-9%29%29%...
[1]: https://twitter.com/mattdesl/status/1323622421933576192
The Matrix: https://tixy.land/?code=i%2F%28x*y%29*%28t*i%29*Math.sin%28t...
Matrix Reloaded: https://tixy.land/?code=i%2F%28x%2Fy%29*%28t%2Fi%29*Math.sin...
Trying to guess what a function will look like without looking at the dots is fun.
Would you know of any resources to build a little led circuit like that on a breadborad, with standard components, that could be powered by a Pi?
In smaller dimensions of course, but even 4*4 would be interesting for educational purposes. The things I found online all used pre-built led boards which is less interesting I think.
I am flummoxed by all these code examples - they produce so much with so little. Any theory behind these cryptic sin and cos 1 liners?
https://tixy.land/?code=i%2F256
https://tixy.land/?code=x%21%3D5+%26%26+y+%21%3D+7
https://tixy.land/?code=x%2F32%2By%2F32
https://tixy.land/?code=Math.sin%28t%29
https://tixy.land/?code=Math.sin%28t%2Bx%29