# python-turtle-draw-svg **Repository Path**: ge_xu/python-turtle-draw-svg ## Basic Information - **Project Name**: python-turtle-draw-svg - **Description**: A python program for draw SVG file using turtle package. - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-22 - **Last Updated**: 2020-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python-turtle-draw-svg [![GitHub issues](https://img.shields.io/github/issues/tfx2001/python-turtle-draw-svg.svg?style=flat-square)](https://github.com/tfx2001/python-turtle-draw-svg/issues) [![GitHub forks](https://img.shields.io/github/forks/tfx2001/python-turtle-draw-svg.svg?style=flat-square)](https://github.com/tfx2001/python-turtle-draw-svg/network) [![GitHub stars](https://img.shields.io/github/stars/tfx2001/python-turtle-draw-svg.svg?style=flat-square)](https://github.com/tfx2001/python-turtle-draw-svg/stargazers) [![GitHub license](https://img.shields.io/github/license/tfx2001/python-turtle-draw-svg.svg?style=flat-square)](https://github.com/tfx2001/python-turtle-draw-svg/blob/master/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库画小姐姐](http://www.bilibili.com/video/av20349733?share_medium=android&share_source=copy_link&bbid=37902872-DA4A-4D5D-878B-AEE788048F4217066infoc&ts=1533854267282) # Reference 1. [potrace.exe](http://potrace.sourceforge.net/) 2. [Python123](https://www.python123.io/index/turtle_drawing/5a006e85283c653c6d3219d8) 3. [深度掌握SVG路径path的贝塞尔曲线指令](https://www.zhangxinxu.com/wordpress/2014/06/deep-understand-svg-path-bezier-curves-command/) 4. [K-Means Clustering in OpenCV](https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_ml/py_kmeans/py_kmeans_opencv/py_kmeans_opencv.html) # License The GNU GPLv3 License. Copyright (c) 2018 tfx2001