Skip to content

Michael0x2a/semifractal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semifractal

This program is designed to generate fractals based on elementary cellular automata. It's currently just a short app, which I made because I was bored. I might go ahead and polish it up later.

Implementation details

I basically wrote a program that generates a set of 1-d cellular automaton. Basically, it generates this (rule 150):

simple triangle

...and rotates it to form this:

simple square

I then introduced an element of randomness to it, so it could form images like this:

complex square

Usage

Click the program to generate a new image. It will print out a number to the console -- that's the seed for the image, so that you can regenerate the image later (support for this is built into the code, but I haven't got around to creating a usable front-end for it yet).

Press any keyboard key to save the image as a png file. The filename is the seed for the image.

Modification

Currently, the code is set to produce squares with 511x511 cells, and with cells being 1 pixel wide. You can examine the code to change these constants.

About

A fractal generator (based on elementary cellular automata)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages