vectors draw lib
Project description
vectors-draw-lib or pyvdl
request
matplotlib
numpy
cv2
doc and example
'''
import pyvdl
class circle(pyvdl.obj):
def __init__(self, r=pyvdl.np.pi):
self.radius = r
def render(self, x, y):
a = self.abs_(x, y)
return a - self.radius
c = pyvdl.render(circle(50), 500, 500)
pyvdl.show(c)
pyvdl.save("circle.png", c)
'''
'''
create new object:
class test(pyvdl.obj):
def __init__(self):
pass
def render(self, x, y):
pass
render:
c = pyvdl.render(test(), 500, 500)
show:
pyvdl.show(c)
save:
pyvdl.save("circle.png", c)
'''
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyvdl-0.0.2.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyvdl-0.0.2-py3-none-any.whl
(3.9 kB
view details)
File details
Details for the file pyvdl-0.0.2.tar.gz.
File metadata
- Download URL: pyvdl-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e41f0f8650d6add7f796eaaf78a2dc47c523aa59acae5d3a98b9cfea1678b9f
|
|
| MD5 |
a862e83c78ee3d0a06feff1a09ca9891
|
|
| BLAKE2b-256 |
50ca8bb62aa558d880197f263c13e16dbd1adf7c3523af32661b41979a9d6547
|
File details
Details for the file pyvdl-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pyvdl-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
131ec9039ea51d1f56e9b53cc1f098febe4d02deef597cd1757ed92a52a7e0af
|
|
| MD5 |
97ac2f1b9028c0eeccf896a79d3d74f7
|
|
| BLAKE2b-256 |
15762506670e1b14fcc601ba3faaa05fef71cbcbdaa2b9a995dd85814684ff07
|