This release is a pre-release and may not be stable for production use.
PyRender
This is a Rendering engine made in Python by Arnav
Installing
You Can Install it either by running the command
git clone https://github.com/HotShot0901/PyRender
If you have git installed
OR
You can Download the latest ZIP or any release.
Run python test.py (in CMD) to check your Installation.
OR
You can use pip.
pip install hs-pyrender
If downloaded from GIT
You could paste the pyrender sub-folder in Python_Dir/Lib/site-packages to use it in your project.
Or, you could also make a sub-project in the main PyRender and use from pyrender import *.
Usage
To import: from pyrender import *
Making a Renderer: renderer=PyRender(dimension) dimension could be (640, 360)
Vector2's: They are very essencial to rendering. They tell the position and dimension of the shape.
Drawing: renderer.drawRect(posX, posY, dimX, dimY, Color(r, g, b), DrawMode.Top)
Frame loop:
for _ in range(180):
renderer.rotate(math.randins(_))
renderer.drawRect(posX, posY, dimX, dimY, Color(r, g, b), DrawMode.Top)
renderer.nextFrame(delCurr=True)
Rendering: renderer.render(renderPath, videoTitle)
You will get your video in renderPath/frames/videoTitle.mp4
Finally:
from pyrender import *
renderer=PyRender((640, 360))
for _ in range(180):
renderer.rotate(math.randins(_))
renderer.drawRect(posX, posY, dimX, dimY, Color(r, g, b), DrawMode.Top)
renderer.nextFrame(delCurr=True)
renderer.render("E:", "video")
Metadata
Release files for hs-pyrender 0.2.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hs-pyrender-0.2.0.dev1.tar.gz | 42.9 kB | Without provenance | Details for hs-pyrender-0.2.0.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hs_pyrender-0.2.0.dev1-py3-none-win32.whl | Python 3 | none | Windows x86-32 | Details for hs_pyrender-0.2.0.dev1-py3-none-win32.whl |
Total release size: 87.2 kB
Release files / hs-pyrender-0.2.0.dev1.tar.gz
| Download URL | hs-pyrender-0.2.0.dev1.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58b46d12c97bf626b7c49cf3c70551314697bf947cc31dd7a7cfa158dab5a81b
|
|
BLAKE2b-256 checksum How to use checksums |
e225b0514ca41afe3373431c05f94099699f74053983722080979d2742a1c61c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.3
|
Release files / hs_pyrender-0.2.0.dev1-py3-none-win32.whl
| Download URL | hs_pyrender-0.2.0.dev1-py3-none-win32.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
a77e4dca9ca36468e65dd314dd3079004c3dd786cde8dc0b18f8dfe4c6e9bd71
|
|
BLAKE2b-256 checksum How to use checksums |
fe5ad44285695c30b4125fd863246eb4007f6aa5e791536c54514df7b132ac44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.3
|
Security for hs-pyrender 0.2.0.dev1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.