User:Thierry Dugnolle/Python/High definition triangle



High definition triangle

The above triangle has been drawn as a succession of three corners, like the following one:



Any line can be drawn as a broken line, therefore as a succession of corners, like the one above. To make rounded corners, it is better to divide a broken line at the middle of each of its segments.

Other files
This program requires the following additional files: Painter.py, Line2Ddrawer.py, Vector2D.py and Palette.py. They are all on this page: User:Thierry Dugnolle/Python/Mathematical painter.