sonoshee is a hodge-podge collection of art/art-adjacent scripts I've written for fun side projects.
Visual tools and generative art.
A esoterically useful byte-to-png converter specifically designed around the .icn file format. Currently, poodle
is even more specialized around .icn
outputs from Noodle a 1-bit minimalist drawing app.
To Poodle a Noodle: python poodle.py -i {Noodle .icn file}
I recommend making a bash alias: alias poodle='python {path_to_poodle.py} -i'
so that you can Poodle Noodles more easily: poodle {file}
A pixel sorter that utilizes Sobel filter masking to selectively sort image pixels. With several scale factor knobs, image series can be generated and stitched into glitchy gifs.
Without filter masking, images are smeared by organizing pixels by their perceived luminosity.
WIP - I still need to add argparse and logging.
The Tinkerbell Map is a class of chaotic dynamical system known as an attractor in which the system tends to evolove to a state or set of states.
The Tinkerbell attractor can be described by:
tinker.py
- Calculates the Tinkerbell Map with 2e4 iterations by default. Saves the image as tink_0000.png in/figures
.plotTinkerLots.py
- Performs the same task as main.py but recalculates the Map with a varied parameter and repeats, saving an image each time.
Using plotLots.py
you can create a series of 'related' frames yourself. I stitched mine together into a .mov using ffmpeg
.
This code requries numpy
and matplotlib
and was intended for python versions 3.X. Feel free to use any or all of this code.
Text-based tools and generative art.
Given a .txt
file, generate a one-ahead Markov chain for all word pairs. Generate a string of text n
words long by navigating the Chain.
python maketxt.py
Reads entire target folder's content and parses for
text, saving as a .txt file.
python markov.py 20 <mytext.txt
Generates a 20-word long sentence using a Markov Chain constructed from mytext.txt contents.
Sample sentences after consuming the contents of my personal blog:
- Departure from determinism and rigid logic is difficult to accept, let alone a tree within this desert.
- Drove for a lunch buffet where the chefs seemed to be a lovely constant in my life.
periodictabel.py
- CLI tool for periodic table of elements lookup. Reads fromelements.tsv
.