Skip to main content

Text renderer for PIXEL models

Project description

PIXEL Renderer

This repository contains a text renderer for PIXEL models.

Usage

Install dependencies:

conda create -n pixel python=3.12 -y
conda activate pixel
conda install -c conda-forge pycairo pygobject manimpango -y
pip install ".[dev]"

Install:

pip install pixel-renderer

Render text as an image (array):

from pixel_renderer.renderer import render_text

render_text(text="test", block_size=16, dpi=120, font_size=12)

[!CAUTION] Our text renderer relies on the computer's font rendering capabilities. Rendering on different systems may yield different results (e.g. emoji). It is a work in progress to create a more robust renderer, decoupled from the system's font rendering, for better consistency across platforms and easier reproducibility.

Cite

If you use this code in your research, please consider citing the work:

@misc{pixel2025renderer,
  title={PIXEL Renderer},
  author={Moryossef, Amit and Kesen, Ilker},
  howpublished={\url{https://github.com/sign/pixel-renderer}},
  year={2025}
}

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

pixel_renderer-0.0.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

pixel_renderer-0.0.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pixel_renderer-0.0.1.tar.gz.

File metadata

  • Download URL: pixel_renderer-0.0.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pixel_renderer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f68c2a227eba7c1e2cc049630412ec323ebb80562c70322fc6c14495ba4b5685
MD5 5944e83c749d58533898226baa1810c8
BLAKE2b-256 8b412ff654dba70c77194e227b11203727f549acaa0a9a0b4e3bb0d97754ee5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pixel_renderer-0.0.1.tar.gz:

Publisher: release.yaml on sign/pixel-renderer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pixel_renderer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pixel_renderer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pixel_renderer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfdd4565cde560ef6fd296ecbcfcdb1dcfd80c48baeaadaa8d7e59f9c9bb1300
MD5 c7ae30dee119b85d96c5a09a97050ada
BLAKE2b-256 6511b9b0b904eeac6ce50239276430cd09bd3737949c0f81c953082be6e91044

See more details on using hashes here.

Provenance

The following attestation bundles were made for pixel_renderer-0.0.1-py3-none-any.whl:

Publisher: release.yaml on sign/pixel-renderer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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