Git Product home page Git Product logo

kcav's Introduction

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.

kcav's People

Contributors

krazune avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.