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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68c2a227eba7c1e2cc049630412ec323ebb80562c70322fc6c14495ba4b5685
|
|
| MD5 |
5944e83c749d58533898226baa1810c8
|
|
| BLAKE2b-256 |
8b412ff654dba70c77194e227b11203727f549acaa0a9a0b4e3bb0d97754ee5c
|
Provenance
The following attestation bundles were made for pixel_renderer-0.0.1.tar.gz:
Publisher:
release.yaml on sign/pixel-renderer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pixel_renderer-0.0.1.tar.gz -
Subject digest:
f68c2a227eba7c1e2cc049630412ec323ebb80562c70322fc6c14495ba4b5685 - Sigstore transparency entry: 605174614
- Sigstore integration time:
-
Permalink:
sign/pixel-renderer@ca81c5854b7fada53b75e74ff2c18266b9a09246 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/sign
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ca81c5854b7fada53b75e74ff2c18266b9a09246 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfdd4565cde560ef6fd296ecbcfcdb1dcfd80c48baeaadaa8d7e59f9c9bb1300
|
|
| MD5 |
c7ae30dee119b85d96c5a09a97050ada
|
|
| BLAKE2b-256 |
6511b9b0b904eeac6ce50239276430cd09bd3737949c0f81c953082be6e91044
|
Provenance
The following attestation bundles were made for pixel_renderer-0.0.1-py3-none-any.whl:
Publisher:
release.yaml on sign/pixel-renderer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pixel_renderer-0.0.1-py3-none-any.whl -
Subject digest:
dfdd4565cde560ef6fd296ecbcfcdb1dcfd80c48baeaadaa8d7e59f9c9bb1300 - Sigstore transparency entry: 605174618
- Sigstore integration time:
-
Permalink:
sign/pixel-renderer@ca81c5854b7fada53b75e74ff2c18266b9a09246 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/sign
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ca81c5854b7fada53b75e74ff2c18266b9a09246 -
Trigger Event:
release
-
Statement type: