Skip to content

tfx2001/python-turtle-draw-svg

Repository files navigation

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

About

A python program for draw SVG file using turtle package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages