Skip to content

Conversation

@JordSant
Copy link
Contributor

@JordSant JordSant commented Dec 7, 2025

Added example for Wolfram's one dimensional elementary cellular automata.

When the rule is changed, both by selecting a preset rule or by changing one bit of the rule, the new automaton is computed line by line.

The new lines are computed on an image with GetImageColor and ImageDrawPixel, then the texture is updated with UpdateTexture.

The input is done via simple rectangle drawing.

@raysan5 raysan5 merged commit efeccfe into raysan5:master Dec 9, 2025
17 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 9, 2025

@JordSant Another great example! Thanks!

rjpearsoniv pushed a commit to rjpearsoniv/raylib that referenced this pull request Dec 14, 2025
* [examples] Add `textures_cellular_automata`

* Comparison always true. Fixed

* Tabs to spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants