• Stars
    star
    186
  • Rank 206,123 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 6 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A python program for draw SVG file using turtle package.

python-turtle-draw-svg

GitHub issues GitHub forks GitHub stars GitHub license

可以把位图转化为svg然后使用turtle库画出来。

Usage

usage: main.py [-h] [-c COLOR] filename

Convert an bitmap to SVG and use turtle libray to draw it.

positional arguments:
  filename              The file(*.jpg, *.png, *.bmp) name of the file you
                        want to convert.

optional arguments:
  -h, --help            show this help message and exit
  -c COLOR, --color COLOR
                        How many colors you want to draw.(If the number is too
                        large that the program may be very slow.)

Dependents

See requirements.txt .

Demo Video

【自制展示】用 Python的 turtle库画小姐姐

Reference

  1. potrace.exe
  2. Python123
  3. 深度掌握SVG路径path的贝塞尔曲线指令
  4. K-Means Clustering in OpenCV

License

The GNU GPLv3 License.

Copyright (c) 2018 tfx2001