Giter VIP home page Giter VIP logo

python-turtle-draw-svg's Introduction

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

python-turtle-draw-svg's People

Contributors

tfx2001 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.