This file contains hidden or 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
%!PS | |
100 770 translate 1 -1 scale /j{rand r mod 2 mul r sub 1 add}def 1 1 12{/c exch def 1 1 24{/r exch def gsave c 28 mul r 28 mul translate j rotate j j 28 28 rectstroke grestore}for}for showpage |
This file contains hidden or 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
%!PS | |
% Postscript implementation of Georg Nees "Schotter" | |
% Nicolas Seriot, 2022-09-20 | |
% https://collections.vam.ac.uk/item/O221321/schotter-print-nees-georg | |
% golfed version | |
% /S 24 def/j{rand r mod 2 mul r sub 1 add}def 1 1 12{1 1 24{ | |
% /r exch def gsave dup S mul r S mul neg S 2 add S mul add | |
% translate j rotate j j S S rectstroke grestore}for}for |
This file contains hidden or 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
%!PS | |
100 500 translate | |
0 0 1 setrgbcolor | |
/N 10 def | |
/STEP 15 def | |
1 1 N { | |
STEP mul /r exch def |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# https://twitter.com/nst021/status/1570047611989540865 | |
# https://seriot.ch/visualization/circles.png | |
import cairo | |
import math | |
N = 10 | |
STEP = 20 |
This file contains hidden or 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
# !/usr/bin/env python3 | |
# Nicolas Seriot | |
# 2022-06-14 | |
# https://seriot.ch/visualization/truchet_2.png | |
# loosely inspired by https://www.fxhash.xyz/gentk/slug/dirty-interlaced-truchet-tiles-18 | |
import cairo | |
import math | |
import random |
This file contains hidden or 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
# !/usr/bin/env python3 | |
# Nicolas Seriot | |
# 2022-06-10 | |
# https://seriot.ch/visualization/truchet_simple.png | |
import cairo | |
import math | |
import random | |
NB_COLS = 8 |
This file contains hidden or 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
# !/usr/bin/env python3 | |
# Nicolas Seriot | |
# 2022-06-09 | |
# Reproducing Roni Kaufman's art | |
# https://twitter.com/KaufmanRoni/status/1520372880156073984 | |
# Sample output: https://seriot.ch/visualization/truchet.png | |
import cairo | |
import math | |
import random |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# 2021-10-09 | |
# Emilien & Nicolas Seriot | |
# https://seriot.ch/visualization/lines_2.png | |
import cairo | |
import random | |
WIDTH = 800 | |
HEIGHT = 600 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# 2021-10-09 | |
# Emilien & Nicolas Seriot | |
# https://seriot.ch/visualization/lines_1.png | |
import cairo | |
import random | |
WIDTH = 800 | |
HEIGHT = 600 |
This file contains hidden or 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
# Nicolas Seriot | |
# 2021-09-24 | |
# | |
# https://gist.github.com/nst/1cfb01d0b78993f7ffe2df7c101b586c | |
# Thread: https://twitter.com/nst021/status/1437889678947110912 | |
# Typical output: https://seriot.ch/visualization/iso7.gif | |
import cairo | |
import random | |
import numpy as np |