Control the size and color of a 16x16 dot matrix with a single JavaScript function. The input is limited to 32 characters – but no limits to your creativity!
🔴🔴
🔴🔴
Some basic hints:
1. Click the dots to get detailed instructions. 2. Update the code to create your own animations. 3. Hit "submit" to save the code in the URL. 4. Make sure to share your creations in the comments!
I will pick the best and add them to the default examples.💕
You can now skip `Math.` in your code and access functions and props like `sin` and `PI` directly! This gives you x*5 more space for your art.
I'm impressed by the overwhelming feedback. tixy.land got 2500 likes, 1000 retweets and 250 replies in less than 24 hours.
It uses invisible Hangul Filler characters (U+3164) in combination with JavaScript's "with" statement and a Proxy object to encode and evaluate the script.
Special invisible characters ("Hangul Filler") are used as property names in a "with" statement. These characters are used in combination with a Proxy to encode a binary sequence by exploiting the property access mechanism.
2. Tagged Template Literal
The backticks (``) look like an empty string but act as a tagged template literal. In this case, the function \u3164 is being used as the tag for the template literal, effectively hoisting it as a function and invoking it in the "with" block.