Coder Social home page Coder Social logo

dumbooctopus / random-walk-images Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 42.05 MB

Command line tool to make random walk images. Great decor for college dorms

Python 100.00%
art command-line-tool pillow python-script random-generation random-walk yaml-configuration

random-walk-images's People

Contributors

dumbooctopus avatar

Watchers

 avatar  avatar

random-walk-images's Issues

config files

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:

  1. Config File
  2. Command line args
  3. Defaults in system.

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>

Cython random algorithms

For example, Gaussian distribution, upward leaning, downward leaning, circular leaning, right leaning, left leaning

Run Multiple times

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.

Margins

in Yaml

walker:
  ...
  margins:
    left: 12
    right: 13
    ...

Do not move over edge

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.

Color hunt integration

python rwalk.py --color-hunt [random or id]
random would mean find a random color hunt entry
id would mean find it by id.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.