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
import numpy as np | |
from PIL import Image | |
def digital_reverse(n, length, base): | |
r = 0 | |
for _ in range(length): | |
r = base*r + n % base | |
n /= base | |
return r |
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
import math | |
import numpy as np | |
from PIL import Image | |
np.set_printoptions(linewidth = 180, edgeitems=10, suppress = True) | |
def digital_reverse(n, length, base): | |
r = 0 | |
for _ in range(length): | |
r = base*r + n % base |
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
# | |
# Manifestation of Permuted Diagonal Line generator (modulo 2) | |
# | |
import numpy as np | |
from PIL import Image | |
def digital_reverse(n, length, base): | |
r = 0 | |
for _ in range(length): |
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
import math | |
import numpy as np | |
from PIL import Image | |
np.set_printoptions(linewidth = 180, edgeitems=10, suppress = True) | |
def digital_reverse(n, length, base): | |
r = 0 | |
for _ in range(length): | |
r = base*r + n % base |
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
///// 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> |
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
///// 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> |
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> |
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
///// 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
///// 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, |