Skip to content

Instantly share code, notes, and snippets.

@x-or
x-or / xorgen2.py
Created July 20, 2013 11:30
Cellular Automata with Modular Arithmetic: Advanced Munching Squares
# Cellular Automata with Modular Arithmetic: Advanced Munching Squares
# Copyright (c) 2013, Sergey Shishmintzev
# License: MPL/GPL
# Interpreter: Python 2.7.3 + numpy 1.6.2 + PIL 1.1.7
#
# P.S. Sorry for my English. It isn't my mother tongue.
#
# Reference:
# [Khan1997] A.R. Khan, et.al., "VLSI architecture of a cellular automata machine", 1997,
# http://dx.doi.org/10.1016/S0898-1221(97)00021-7
### Copyright (c) 2015, Sergey Shishmintzev
### License: Apache/GPLv3
### Example video: http://youtu.be/aJ9IRxgpH10
### Interpreter: Python 2.7.5 with NumPy 1.9.1 and Pillow 2.7.0
power = 19
name = "spiral"
frame_count = 15000
### Copyright (c) 2015, Sergey Shishmintzev
### License: Apache/GPLv3
### Examples: http://youtu.be/2kckHKCVvDs https://youtu.be/aFN02gJUJ0o
### Interpreter: Python 2.7.5 with NumPy 1.9.1 and Pillow 2.7.0
power = 19
name = "spiral"
frame_count = 12000
@x-or
x-or / rug.cpp
Created October 20, 2013 15:25
Rug Cellular Automata (demo)
///// Rug Cellular Automata (demo)
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Idea: http://www.fourmilab.ch/cellab/manual/rules.html#Rug
///// Example: http://youtu.be/OQQ8zq-xjXI
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 rug.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
#include <assert.h>
@x-or
x-or / unkgen.cpp
Created October 1, 2013 15:10
Kiss My Glowing Pixel! (demo)
///// Kiss My Glowing Pixel! (demo)
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Example: http://youtu.be/xVpsqkSMgOI
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 unkgen.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
#include <assert.h>
#include <stdio.h>
@x-or
x-or / unkgen.cpp
Created September 27, 2013 08:41
Fantastic Lava
///// Fantastic Lava
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Example: http://youtu.be/OZ0wLfmWhHo
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 unkgen.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
#include <assert.h>
#include <stdio.h>
@x-or
x-or / unkgen.cpp
Created September 21, 2013 10:51
Fantastic Plasmoids
///// Fantastic Plasmoids
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Example: http://youtu.be/5dI-HHD9RsI
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 unkgen.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
#include <assert.h>
#include <stdio.h>
@x-or
x-or / unkgen.cpp
Created September 20, 2013 12:51
Pulpy Linen
///// Pulpy Linen
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Example: http://youtu.be/NWwGkdmsAQ0
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 unkgen.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
#include <assert.h>
@x-or
x-or / unkgen.cpp
Created September 19, 2013 07:46
Cellular Cubism
///// Cellular Cubism
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Example: http://youtu.be/bGNsrzVarfo
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 unkgen.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
/////
///// Reference:
///// [Khan1997] A.R. Khan, et.al., "VLSI architecture of a cellular automata machine", 1997,
@x-or
x-or / unkgen.cpp
Created September 19, 2013 07:42
Abstract Plasma
///// Abstract Plasma
///// Copyright (c) 2013, Sergey Shishmintzev
///// License: Apache/GPLv3
///// Example: http://youtu.be/xImkiaobRJA
///// Compiler: gcc-4.7.3 (cygwin)
///// Compile command: g++ -O3 unkgen.cpp -lpng
///// P.S. Sorry for my English. It isn't my mother tongue.
/////
///// Reference:
///// [Khan1997] A.R. Khan, et.al., "VLSI architecture of a cellular automata machine", 1997,