Live data from Hacker News

Bitbanging 1D Reversible Automata

richiejp.com

1–10 of 24 posts

Re: Bitbanging 1D Reversible Automata

#4

Man do I ever want a wall-size flipdisk display to cycle through the different rules throughout the day...

Check out the Hisense Canvas.

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

Re: Bitbanging 1D Reversible Automata

#5
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...

Re: Bitbanging 1D Reversible Automata

#6
post #5

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://gi…

could you provide a link to the code?

Re: Bitbanging 1D Reversible Automata

#9
post #6
post #5

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://gi…

could you provide a link to the code?

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))
Post reply on HN