[HN Gopher] Bitbanging 1D Reversible Automata
___________________________________________________________________
Bitbanging 1D Reversible Automata
Author : richiejp
Score : 53 points
Date : 2024-12-12 18:41 UTC (4 hours ago)
(HTM) web link (richiejp.com)
(TXT) w3m dump (richiejp.com)
| jszymborski wrote:
| Man do I ever want a wall-size flipdisk display to cycle through
| the different rules throughout the day...
| TechDebtDevin wrote:
| Check out the Hisense Canvas.
| jszymborski wrote:
| Actually was tempted to buy a Samsung Frame TV earlier this
| month when TV shopping.
|
| Still, without the clicking and clacking, it's not quite the
| same :P
| kousun12 wrote:
| played around with a few colorization convolution kernels based
| on density and thought they turned out nicely:
|
| rusty: https://github.com/user-
| attachments/assets/6cec75da-3366-4ce...
|
| ocean3: https://github.com/user-
| attachments/assets/6dbdc099-2dc3-433...
|
| forest4: https://github.com/user-attachments/assets/dc77bbfd-
| bd15-4e4...
|
| rust105: https://github.com/user-
| attachments/assets/d80733c9-b435-49a...
|
| ocean105: https://github.com/user-
| attachments/assets/d717a3f1-32bb-449...
| richiejp wrote:
| could you provide a link to the code?
| genewitch wrote:
| i wrote something similar a _real_ long time ago, but it was
| a pig, super slow. So i upgraded to winpro or whatever and
| had copilot figure out what was slowing it down, and it was a
| simple fix, and i fleshed out the UI a bit. I forget where i
| first saw the rules, but when i went and fixed it up i used
| the wolframalpha reference[0]
|
| Adjust the screen rez. i am not a software developer and i
| put stuff on github as additional backups.
|
| [0]https://mathworld.wolfram.com/ElementaryCellularAutomaton.
| ht...
|
| my code: https://github.com/genewitch/opensource/blob/master/
| elementa... it uses pygame you can do python -m venv
| cellular; scripts\activate.[bat|ps1|sh]; pip install pygame;
| python elementalautomata.py
|
| the rules are the same numbers as OP used, so given the same
| seeds the monochrome output should be identical (this is a
| deterministic automaton) I forget which rules were my
| favorite, but i constantly test 110 and 73 (73 is
| psuedorandom but doesn't look like it is, it looks like it
| repeats.) - my code checks for loops, but it defaults to 1
| screen-fulls of checking, you can press H to increase this by
| 1 screen-full per press. this will slow my code down to a
| crawl, but you can find loops in the longer period automata.
|
| i was going to do a version similar in godot but i got
| distracted by ipv6 routing.
|
| edit:
|
| the part you'd need to adapt to add color in my code is just
| this one part, i think: for pixel in
| range(1, w): if lineOut[pixel] == 1:
| world.set_at((pixel, h-1), (0, 0, 0))
| else: world.set_at((pixel, h-1), (255,
| 255, 255))
| tugu77 wrote:
| Automaton.
|
| The singular is automaton. Automata is plural.
| pixelpoet wrote:
| I was considering posting this, but then I realised the
| hypocrisy in my use of the word "data" :)
___________________________________________________________________
(page generated 2024-12-12 23:00 UTC)