Skip to content
/ kcav Public

Krazune's Cellular Automata Viewer is a viewer for a collection of 2d cellular automata that uses images as input.

License

Notifications You must be signed in to change notification settings

Krazune/kcav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KCAV

Krazune's Cellular Automata Viewer is a viewer for a collection of 2d cellular automata, in which images are used as input.

Version

Current version: 2021.12.1

The version format is "<year>.<zero padded month>.<revision number>".

Cellular Automata

Game of Life

Game of Life demo

KCAV identifier: life

Neighborhood type: Moore neighborhood

Rules

Rules available at wikipedia.

KCAV's Image Conversion

Black and white pixels are kept as is. Other colors are converted into the closest valid color.

Notes

One of the most popular cellular automata.


Seeds

Seeds demo

KCAV identifier: seeds

Neighborhood type: Moore neighborhood

Rules

Rules available at wikipedia.

KCAV's Image Conversion

Black and white pixels are kept as is. Other colors are converted into the closest valid color.


Brian's Brain

Brian's Brain demo

KCAV identifier: brians-brain

Neighborhood type: Moore neighborhood

Rules

Rules available at wikipedia.

KCAV's Image Conversion

Black, white and 100% blue pixels are kept as is. Other colors are converted into the closest valid color.


Live Free or Die

Live Free or Die demo

KCAV identifier: lfod

Neighborhood type: Moore neighborhood

Rules

Rules available at LifeWiki.

KCAV's Image Conversion

Black, and white pixels are kept as is. Other colors are converted into the closest valid color.


Kladiators

Kladiators demo

KCAV identifier: kladiators

Neighborhood type: Von Neumann neighborhood

Rules

Each pixel turns into the color of the neighbor pixel with the highest sum of r, g, and b channels. If multiple pixels have the same sum, priorities follow anti-clockwise direction.

KCAV's Image Conversion

No conversion needed.

Notes

Created by Krazune.


Pilots

Pilots demo

KCAV identifier: pilots

Neighborhood type: 4 immediate neighbors

Rules

The following rules are normalized into cellular automata mechanics: red pixels move right, blue pixels move down, green pixels move left, and yellow pixels move up. When multiple colors hit the same cell, that cell turns black. All other cells are white.

KCAV's Image Conversion

Colors are converted into the closest valid color.

Notes

Created by Krazune.

Usage

./kcav --help

./kcav --version

./kcav <ruleset identifier> <image path> [options]

Options

--time <milseconds per frame>

--scale <initial scale of the window, must be above 1>

--first-frame-time <milseconds for the first frame>

Dependencies

This project uses Boost 1.75, SFML 2.5.1, and Google Test 1.10.x, earlier versions might be compatible.

License

MIT License

Notes

The performance of this program is not good.

This generator was created for entertainment, and educational purposes.

About

Krazune's Cellular Automata Viewer is a viewer for a collection of 2d cellular automata that uses images as input.

Topics

Resources

License

Stars

Watchers

Forks

Languages