Giter VIP home page Giter VIP logo

swirl's Introduction

swirl

Help message:

➜ py .\swirl.py --help
Usage: swirl.py [OPTIONS] COMMAND [ARGS]...

  CLI entry point. Will plot a single default spirograph if left blank without
  a subcommand.

  Args:     ctx (click.core.Context): Context passed by click to determine if
  subcommand is empty.

Options:
  --help  Show this message and exit.

Commands:
  multi   A helper function to plot multiple graphs by incrementing the...
  single  Function to plot and display a defaul spirograph.

Creating and displaying a single image with defaults:

➜ py .\swirl.py

or

➜ py .\swirl.py single

Creating and displaying a single image with changed inner and outer radius sizes:

➜ py .\swirl.py --inner=0.7 --outer=0.9

Creating and displaying a multi image with defaults:

➜ py .\swirl.py multi

Creating and displaying a multi image with changed inner and outer radius sizes:

➜ py .\swirl.py multi --inner=0.1 --outer=2.5

Default single image:

image

Default multi image:

image

Installation and Setup

This project uses poetry for the dependency management. Once you have poetry installed, initialize your virtual environment for the project with poetry shell

Install the dependencies with poetry install

If you wish to contribute to the repo, install the pre-commit hooks with poetry run pre-commit install

swirl's People

Contributors

brad90four avatar

Watchers

 avatar

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.