Made this prototype today, I call it Conway's game of breakout 😜
@anathem
Es braucht auf jeden fall noch mehr Flair, aber an dem Punkt bin ich noch lange nicht 😭
Regenbogenfarben kommen aber immer gut. 😄
Das bringt mich aber auf eine Idee, vielleicht könnte ich auch noch Langton's Ant Algo mit einbringen, hab hier damit schon mal rumprobiert https://tackertacker.itch.io/ant
@TackerTacker
Arbeitet im HSV-Farbmodell mit sat=100%, v=100%. Wenn du die Hues h1,h2,h3 in Radians hast, gilt:
hue = atan2( sin(h1)+sin(h2)+sin(h3), cos(h1)+cos(h2)+cos(h3) )
Hier is der Code (neighborcolor(), Zeile 710..729). b ist die Nummer des Current Buffers, x und y die Position im Buffer, der Buffer hält den Hue jeder Zelle mapped auf 8bit (mit 0 = tot als special value).
https://github.com/orithena/Arduino-LED-experiments/blob/master/Ribba16x16_v2_ESP32/Ribba16x16_v2_ESP32.ino