Crate pxl[−][src]
pxl
A simple framework for making graphical programs in Rust. pxl
is intended to avoid
Rust's most challenging concepts, while still providing a compelling platform upon
which to develop graphical games and programs.
Features
- Pixel-based rendering
- Sample-based audio synthesis
- Custom vertex and fragment shaders
pxl-build
, a compile-time resource loading crate- Action and text input
Structs
Image |
An image made of pixels. Used by the |
Pixel |
An RGBA pixel. Components should normally be between
|
Sample |
A single stereo audio sample, representing |
Enums
Button |
Enum representing input buttons |
ButtonState |
Enum representing the state of an input button |
Event |
Input events |
Constants
SAMPLES_PER_SECOND |
The number of audio samples in a second. Synthesizer implementations will need this to calculate the current time from the number of samples played so far. |
Traits
Program |
Trait representing a |
Synthesizer |
Trait for things that can generate sound |
Functions
run |
Run a |