You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
tixy (https://tixy.land/) is a very simple creative coding playground. Users can write a short formula using the time, index, x and y parameters, and the formula is evaluated and returned for each dot, and values are capped between -1 and 1. 0 to 1 means a white dot. 0 to -1 a red dot, with 1/-1 the max size and 0 no dot.
Limitation
We of course drop the color (negative values) dots.
Using persistence of vision and a fast refresh rate could help turning the dot size value into LED intensity values.
But much probably the easiest way to get a working version with reasonable effort is reuse and adapt the web front of tixy.land:
use the computed value by the web page,
send the values to the micro-controller as a stream
the micro-controller then drive the LEDs, acting as just a dumb receiver.
Plus: The preview and interpreter is already there, and the receiving code on the micro-controller can be simpler, focusing on driving the LEDs. All the existing tixy formulas shared on twitter and elsewhere can be tried.
Minus: There’s nor code to persist on the micro-controller, and thus once we close our browser the screen stops displaying our tixy formula results. We needs a browser to control and send the value, all the creative coding part is actually done in the browser, which may limit the hacking aspect / fun? The micro-controller needs to store and serve the tixy page and code.
The text was updated successfully, but these errors were encountered:
A new creative coding mode inspired by tixy.land
Context
tixy (https://tixy.land/) is a very simple creative coding playground. Users can write a short formula using the time, index, x and y parameters, and the formula is evaluated and returned for each dot, and values are capped between -1 and 1. 0 to 1 means a white dot. 0 to -1 a red dot, with 1/-1 the max size and 0 no dot.
More infos there: https://twitter.com/aemkei/status/1323399877611708416
The code is simple enough and easy to ready:
https://github.com/aemkei/tixy/
Limitation
We of course drop the color (negative values) dots.
Using persistence of vision and a fast refresh rate could help turning the dot size value into LED intensity values.
Adaptation
We could store and compute the formula on the micro-controller (using https://github.com/owenmcateer/tixy.land-display and https://github.com/codeplea/tinyexpr for example)
But much probably the easiest way to get a working version with reasonable effort is reuse and adapt the web front of tixy.land:
Plus: The preview and interpreter is already there, and the receiving code on the micro-controller can be simpler, focusing on driving the LEDs. All the existing tixy formulas shared on twitter and elsewhere can be tried.
Minus: There’s nor code to persist on the micro-controller, and thus once we close our browser the screen stops displaying our tixy formula results. We needs a browser to control and send the value, all the creative coding part is actually done in the browser, which may limit the hacking aspect / fun? The micro-controller needs to store and serve the tixy page and code.
The text was updated successfully, but these errors were encountered: