Skip to main content
Pre-release

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)

Source distribution for hs-pyrender 0.2.0.dev1
File Size Uploaded
hs-pyrender-0.2.0.dev1.tar.gz 42.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hs-pyrender 0.2.0.dev1
File Interpreter ABI Platform
hs_pyrender-0.2.0.dev1-py3-none-win32.whl Python 3 none Windows x86-32 Details

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

Release history Release notifications | RSS feed

This release

0.2.0.dev1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page