Skip to main content

vectors draw lib

Project description

vectors-draw-lib or pyvdl

request

matplotlib

numpy

cv2

Docs

install:

pip install pyvdl matplotlib opencv-python numpy

init:

import pyvdl as vl
print(f'install pyvdl: {vl.__version__}')

create_obj:

class example(vl.obj):
    def __init__(self):
        self.color = (255, 255, 255)
    def render(self, x, y):
        return self.abs_(x, y) - 20 < 0

create_animation:

class p(vl.animation):
    def __init__(self):
        self.size = (500, 500)
        self.form = lambda x : x
        self.t = 5
        self.obj_ = example()

render:

# obj
obj = example()
r = vl.render(obj)
vl.show(r)  # show render-obj: r, only works on pykernel
vl.save("test.png", r)  # save render-obj: r as "test.png"
# animation
animate = p()
animate.render()
animate.video("animation.avi")  # filename.avi

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.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvdl-0.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyvdl-0.0.4.tar.gz.

File metadata

  • Download URL: pyvdl-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for pyvdl-0.0.4.tar.gz
Algorithm Hash digest
SHA256 101e8692adb06bc78522284a14fbc578193735e2a53224fa315a319238d4a867
MD5 910ad1d53f69cc41a4b6c93972e26caa
BLAKE2b-256 5a6a97d71dde041be57cf6db3404574e1d8891284596c6f9da749b307c7f42af

See more details on using hashes here.

File details

Details for the file pyvdl-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyvdl-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for pyvdl-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a247ace7800e232fd596b3356be952c042e70a57b6a09a2b188c7cbcf001e7f
MD5 1758b7f0b72b8a66dff24bfaeea324cf
BLAKE2b-256 f45e36749b7ac28f0562baa35407eec42193f1b87a72736b24d7fa62e27008e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page