Skip to content

A short Python implementation of "Jolygones", an idea I read about in the french magazine "Tangente"

Notifications You must be signed in to change notification settings

Smoltbob/Jolygones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jolygones

A short Python implementation of "Jolygones", an idea I read about in the french magazine "Tangente".

triangle carre etoile

Getting started

These instructions will let you run the code and generate as many Jolygones as you'd like.

Prerequisites

Installed on your computer :

Python3

As well as a way to display svg graphics (a web browser or most image viewers will work).

Running the code

The syntax is the following :

./jolygones -a <angle> -i <iterations> -c <coefficient> -s <size>
  • angle is in degrees and should be less or equal to 90 degrees if you want the figure to loop inwards.
  • iterations is the number of segments that will be displayed.
  • coeeficient dictates how the segments grow or shrink. It should be less than one if you want the figure to shrink.
  • size is the size of the first segment in pixels.

The image generated will be called "test.svg".

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

A short Python implementation of "Jolygones", an idea I read about in the french magazine "Tangente"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages