Skip to main content

Crate pxldraw

Crate pxldraw 

Source
Expand description

2D software pixel renderer.

The pxldraw crate plays a similar role to embedded-graphics-core, but is built specifically for software1 rendering of pixels on to a DrawTarget; this crate also provides a Framebuffer type that can be used to implement in-memory 2D draw operations on a grid of pixels.

§Features

No features are enabled by default.

§alloc

Enables the alloc crate, including creating alloc::vec::Vec-backed framebuffers

§bytemuck

Enables cheap “view as bytes” (&[u8]) conversions on dependencies.


  1. DrawTarget could be implemented in a hardware accelerated way by another crate. 

Modules§

buffer
Pixel buffer.
core
Core types, often re-exported from other crates.
target
Defines a target for drawing pixels on a 2D surface.