Skip to main content

A high-performance OpenGL-based trajectory renderer

Project description

Trajectory Renderer (traj-render)

A high-performance OpenGL-based trajectory renderer using ModernGL. Supports 15+ gradient modes, glow effects, and multi-threaded rendering.

Installation

pip install traj-render

Quick Start

import numpy as np
from traj_render import EnhancedTrajectoryRenderer, TrajectoryStyle, GradientMode

# Initialize renderer
renderer = EnhancedTrajectoryRenderer(frame_size=(1920, 1080))

# Define trajectory style
style = TrajectoryStyle(
    head_width=20.0,
    tail_width=2.0,
    max_length=50,
    gradient_mode=GradientMode.AURORA,
    glow_enabled=True
)

# Example points
points = np.array([[100, 100], [200, 300], [400, 200]], dtype=np.float32)

# Render frame
# Note: You'll need an OpenGL context or use the built-in standalone context
# frame = renderer.render_frame(points, style)

Features

  • 15+ Gradient Modes (Aurora, Cyberpunk, Fire, etc.)
  • Gaussian Blur Glow Effects
  • High-performance ModernGL implementation
  • Standalone OpenGL context support

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

traj_render-0.1.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

traj_render-0.1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file traj_render-0.1.0.tar.gz.

File metadata

  • Download URL: traj_render-0.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for traj_render-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9dd50ae9600b0412a9b83de18008b4d6fa2b01ea6f31d2d279797459777e0b1e
MD5 de59f7d96eb5d7ff3650695dc4ae273b
BLAKE2b-256 d9e1b349667aaae6ed86eef7bcb2b4921e6c23e974ad8e472a4d2ea3c2771742

See more details on using hashes here.

File details

Details for the file traj_render-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: traj_render-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for traj_render-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9136c79cf2ab9e41c52bcb6ca2cbfde5cd3822d3dae8ffd9d69c50f5dba0eb97
MD5 f45e8c33b4f3434445911357a37384cb
BLAKE2b-256 a0f4e75ea7ad3b69642fc5ece60392e544f0c1a35ea678d7b80a4af8fc21711e

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