Registry / other / pixels

pixels

JSON →
library0.17.0rscratesunverified

A tiny GPU-powered pixel frame buffer for real-time graphics.

# Cargo.toml [dependencies] pixels = "0.17.0"
INSTALL
IMPORT
SIG · PIXELS
P
pixels
otherrustv0.17.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pixels
use pixels::Pixels;

Creates a pixel buffer and renders it to a window.

use pixels::{Pixels, SurfaceTexture}; let window = winit::window::Window::new(&event_loop).unwrap(); let mut pixels = Pixels::new(320, 240, SurfaceTexture::new(320, 240, &window)).unwrap(); pixels.render().unwrap();
Debug
Known issues
gotchaRequires a running event loop and window (e.g., winit) to function.
fix
Ensure you have a winit window and event loop set up before creating Pixels.
affects: >=0.1.0
Upgrade
Version history
0.17.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pixels — cargo add pixels · libregistry