dumbooctopus / random-walk-images Goto Github PK
View Code? Open in Web Editor NEWCommand line tool to make random walk images. Great decor for college dorms
Command line tool to make random walk images. Great decor for college dorms
Move all the options into a configuration.yaml file.
Usage
python rwalk.py config.yaml
if arguments are passed, they will override the options given in the config (but they will not change the file itself). The -c tag should become deprecated.
Highest priority to settings:
Example YAML file:
background: [hex or tuple or sub list with r g and b values]
width: <int>
height: <int>
iterations: <int>
thread: <boolean>
noshow: <boolean>
file: [Filename which can include the special word $t which will be replaced with a timestamp]
walkers:
- walker_name:
color: [hex or tuple or sub list with r g and b values]
position: [random or xy tuple]
iterations: <int> (overrides iterations for this specific walker)
margin-[left|right|top|bottom\""]: <int>
For example, Gaussian distribution, upward leaning, downward leaning, circular leaning, right leaning, left leaning
Add a -r
or --runs
option to run the code several times. This addition will also add a $i
special word to the filename so the users can index the files.
if -c some_directory/file.txt
is used, then the default filename contains a /
in Yaml
walker:
...
margins:
left: 12
right: 13
...
When it reaches a boundary, it does not loop to the other side.
walkers:
- walker:
...
edges: wrap | hard # default wrap should not be a required field.
python rwalk.py --color-hunt [random or id]
random would mean find a random color hunt entry
id would mean find it by id.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.