可以把位图转化为svg然后使用turtle库画出来。
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.)
See requirements.txt
.
The GNU GPLv3 License.
Copyright (c) 2018 tfx2001