This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
power = 9 | |
size = 2**power | |
scenario = [ | |
# scene 0 | |
(size, lambda i, x, y: ((x+i)%size, x, (x-i)%size), | |
lambda i, x, y: (y, (y+i)%size, (y-i)%size)), | |
# scene 1 | |
(size, lambda i, x, y: ((x-i)%size, (x-i)%size, x), | |
lambda i, x, y: (y, (y+i)%size, (y+i)%size)), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Multi-Layered XOR Pattern Motion Generator | |
# 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. | |
import numpy as np | |
def bitreverse(n, l): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// Abstract Patched Plasma | |
///// Copyright (c) 2013, Sergey Shishmintzev | |
///// License: Apache/GPLv3 | |
///// Example: http://youtu.be/lhX0IPpsg6E | |
///// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// Abstract Choppy Liquid | |
///// Copyright (c) 2013, Sergey Shishmintzev | |
///// License: Apache/GPLv3 | |
///// Example: http://youtu.be/ow180xHS3bY | |
///// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// 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> |
OlderNewer