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.1.tar.gz
(2.7 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.1-py3-none-any.whl
(3.7 kB
view details)
File details
Details for the file pyvdl-0.0.1.tar.gz.
File metadata
- Download URL: pyvdl-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5a35f16c193bff6ea0794c54ae3864b1d468c057e1e4294099f3c118e03bf43
|
|
| MD5 |
effd58f69ff37c220d42a46696f44499
|
|
| BLAKE2b-256 |
64300015ef7ec956def1894e99e166e727f831320ac47c7ec296effc61edb717
|
File details
Details for the file pyvdl-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyvdl-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
2ae40513e0caf7582094d3b26f5fa0c7b8467cfddc02c51c40f2bff94f926730
|
|
| MD5 |
f59296d21a2609abe14854087b8d45f0
|
|
| BLAKE2b-256 |
9fe3752bba77bdb117b08481256a530ac5140e0d0ec9ef70f58117dd628b3539
|