Login
You're viewing the code4lib.social public feed.
  • Feb 24, 2024, 4:48 PM

    my #GameofLife spawned an ...
    🐜 ...It's alive! :awesome: :yayblob:
    #pygame 🥰

    does:
    generates random initial state Cellular automata on 50x50 matrix (numpy); with timer events and color change(THECOLORS dictionary), mouseklicks or mousewheel to change and reset/newlife;
    exporting png in 240 frames @ 20 fps

    todo:
    make mouse input for patterns to set/read?🤔
    👀
    pygame.org/news

    a 500x500 grid (one pixel 10x10)video of a random set of initial states, 240 generations long; i even can spot an "ant" :)
    💬 5🔄 0⭐ 0

Replies