https://github.com/turingtest37/colonies
Funky cellular automata. Explore number theory. Make art. Create psychedelic icons.
https://github.com/turingtest37/colonies
Last synced: 5 months ago
JSON representation
Funky cellular automata. Explore number theory. Make art. Create psychedelic icons.
- Host: GitHub
- URL: https://github.com/turingtest37/colonies
- Owner: turingtest37
- Created: 2020-02-07T23:19:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T00:28:15.000Z (over 6 years ago)
- Last Synced: 2025-02-05T09:21:24.104Z (over 1 year ago)
- Language: Julia
- Size: 58.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Colonies
Generate funky cellular automata based on simple equations. Explore number theory. Make art. Create psychedelic icons. Help me learn good Julia!
# Quick Start
``
using Pkg; Pkg.add("Colonies") # THIS DOES NOT WORK YET!!!
using Colonies
generatemany(10,10,50,50,true,limit=100) # To create 100 images based on random pairs of a 3x3 mask with a filter.
``
Output will appear as PNG files in "img/
-- OR --
``
generatemany(15,15,100,100,false,limit=50,seed=seedwith(randedge))
``
The randedge option introduces a one-pixel thick edge of randomly generated 0:1 cells on
top of an all white canvas. Think "random picture frame".
-- OR --
``
redraw("a_really_cool_Colony_file.png","resultdir",20,20,50,50)
``
Regenerate the given file, putting it into a possibly non-existant directory,
The new dimensions are 20 cells x 50 pixels/cell = 1000 pixels in each direction (x and y)
The resulting image will be a 1000 x 1000 grayscale PNG.
-- OR --
``
redraw("a_really_cool_Colony_file.png","videodir",layout=VideoLayout(12))
``
Regenerate the given cool file (which is required to have been created in Colonies) as an MPEG 4 grayscale video
with framerate = 12 fps, putting the result file into a new directory, "resultdir". The filename will be
"colony4j-NNNN.mp4" where NNNN is a long UUID string. For now, only grayscale is supported.