sketchpy
Project description
Welcome to sketchpy
Intro to the project and some quick information,followed by an image of the project.
Description
This is the beginning level python project to do some awesome drawing animation using the turtle
module, hope it grows in the future
Usage
- Just install the package
pip install sketchpy
- Import it to you project
import sketchpy
and use as you want😊
Built with
- Turtle
- Open-cv
- Pillow
Getting started
Prerequisites
- Python
- Basic text editor
- creativity😂
Install
pip install sketchpy
it should probably work, If not then try the following code
pip install turtle open-cv wheel sketchpy
Example
from sketchpy import library as lib
obj = lib.rdj()
obj.draw()
OUTPUT
More examples
from sketchpy import library as lib
obj = lib.bts()
obj.draw()
from sketchpy import library as lib
obj = lib.vijay()
obj.draw()
Drawing from SVG file
Use the following code to draw a file from svg file, insted of tracing full image
NOTE: use this specific website to convert image to svg, sketchpy is specifically made to work with this website only
from sketchpy import canvas
obj = canvas.draw_from_svg('FILE PATH')
obj.draw()
Saving a loaded svg file
Insted of waiting for the svg file to load, you can save as .npy file and use that for future use
from sketchpy import canvas
obj = canvas.sketch_from_svg('FILE PATH')
obj.load_svg(filename = 'data.npy')
Drawing form .npy file
use the following code to draw your image from saved data file
from sketchpy import canvas
obj = canvas.sketch_from_svg('FILE PATH')
obj.draw(filename = 'data.npy')
Troubleshooting
- If you find any problem, you can pull request, or contact me on either insta or discord
- You can also find video on my youtube channel
Acknowledgements
Thanks to all who helped inspire this project.❤
See also
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sketchpy-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7521c7a97dc1172b95470166d4ce04142e29db80d04fb31a8ef1e53dea934e1 |
|
MD5 | 359383f88836d5546df160460c0921f7 |
|
BLAKE2b-256 | f13e796718fc949077e384430cb6e9f156714094138be13714ecdf68e280cfe8 |