Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 693 Bytes

File metadata and controls

31 lines (18 loc) · 693 Bytes

LineDrawPy

Python port of my C++ graphics program LineDraw, with added support for coloured edges.

image

Usage

python3 src/main.py examples/edges.txt > examples/output/edges.ppm

produces

image

given the following input file edges.txt

  0,   0, 100, 100, ff0000
100, 100, 200,   0, 00ff00
200,   0,   0,   0, 0000ff

Output format

The output of LineDrawPy is in Portable PixMap format. To view this image format, use either an image viewer like feh which supports PPM, or convert the image to another format.

Development

Running tests

make test