| Crates.io | bevy_pixel_buffer |
| lib.rs | bevy_pixel_buffer |
| version | 0.8.2 |
| created_at | 2022-08-11 03:14:20.695178+00 |
| updated_at | 2024-11-18 17:54:35.274643+00 |
| description | A library to draw pixels in bevy |
| homepage | |
| repository | https://github.com/Zheoni/bevy_pixel_buffer |
| max_upload_size | |
| id | 643087 |
| size | 223,380 |
A library to draw pixels in bevy.
A basic example,
use bevy::prelude::*;
use bevy_pixel_buffer::prelude::*;
fn main() {
let size = PixelBufferSize {
size: UVec2::new(32, 32),
pixel_size: UVec2::new(16, 16),
};
App::new()
.add_plugins((DefaultPlugins, PixelBufferPlugin))
.add_systems(Startup, pixel_buffer_setup(size))
.add_systems(Update, update)
.run();
}
fn update(mut pb: QueryPixelBuffer) {
pb.frame().per_pixel(|_, _| Pixel::random());
}

egui*. Egui integration.rayon. Enables extra alternative functions that use rayon.rand. Enables extra functionality related to random values.* Disabled by default.
Version compatibility table.
bevy |
bevy_pixel_buffer |
|---|---|
0.14 |
0.8 |
0.13 |
0.7 |
0.12 |
0.6 |
0.11 |
0.5 |
0.10 |
0.4 |
0.9 |
0.3 |
0.8 |
0.2 |