Git Product home page Git Product logo

generative-art's Introduction

Poetry Python Project

This project contains scripts that produce generative art.

Installation

To install the project, run the following command:

poetry install

Usage

To use the project, run the following command:

poetry run python main.py

Usage

Mandelbrot

To use the program, run the following command:

python mandelbrot.py -it <iterations> -w <width> -hh <height> -x <x> -y <y> -z <zoom>

where:

-it: Number of iterations (default: 256)
-w: Canvas width in pixels (default: 512)
-hh: Canvas height in pixels (default: 512)
-x: Starting x coordinate (default: 0.5)
-y: Starting y coordinate (default: 0.5)
-z: Number of zoom iterations (default: 200)

e.g

python mandelbrot.py -it 1000 -w 1024 -hh 1024 -z 200

Squares

To use the program, run the following command:

python squares.py -w <width> -hh <height> -b <border> -s <space> -c <columns> -d <distortion>

where:

-w: The width of the canvas (default: 1000) 
-hh: The height of the canvas (default: 1600)
-b: Border size in pixels (default: 200)
-s: Space between shapes in pixels (default: 10)
-c: Number of shapes per row (default: 10)
-d:Ddistortion magnitude affecting rotation and traslation of shapes (default: 2)

License

This project is licensed under the MIT License.

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.