A library for rendering vector shapes using the Bevy game engine
Rust
476
111 commits
updated Oct 12, 2026
Bevy Vector Shapes is a library for easily and ergonomically creating instanced vector shapes in Bevy.
Bevy Vector Shapes is in the early stages of development. You may encounter issues, but feel free to report them.
See basic usage below and the examples for more details on all supported features.
use bevy::prelude::*;
// Import commonly used items
use bevy_vector_shapes::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
// Add the shape plugin:
// - Shape2dPlugin for 2D cameras
// - ShapePlugin for both 3D and 2D cameras
.add_plugins(Shape2dPlugin::default())
.add_systems(Startup, setup)
.add_systems(Update, draw)
.run();
}
fn setup(mut commands: Commands) {
// Spawn the camera
commands.spawn(Camera2d);
}
fn draw(mut painter: ShapePainter) {
// Draw a circle
painter.circle(100.0);
}
| bevy | bevy_vector_shapes |
|---|---|
| 0.20 | 0.14.0 |
| 0.19 | 0.13.1 |
| 0.18 | 0.12.1 |
| 0.17 | 0.11.1 |
| 0.16 | 0.10.0 |
| 0.15 | 0.9.3 |
| 0.14 | 0.8.2 |
| 0.13 | 0.7.0 |
| 0.12 | 0.6.0 |
| 0.11 | 0.5.2 |
| 0.10 | 0.4.6 |
537 followers · starred Dec 2023
260 followers · starred May 2025
565 followers · starred Jul 2023
261 followers · starred Sep 2023
A library for rendering vector shapes using the Bevy game engine
Rust
476
111 commits
updated Oct 12, 2026
Bevy Vector Shapes is a library for easily and ergonomically creating instanced vector shapes in Bevy.
Bevy Vector Shapes is in the early stages of development. You may encounter issues, but feel free to report them.
See basic usage below and the examples for more details on all supported features.
use bevy::prelude::*;
// Import commonly used items
use bevy_vector_shapes::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
// Add the shape plugin:
// - Shape2dPlugin for 2D cameras
// - ShapePlugin for both 3D and 2D cameras
.add_plugins(Shape2dPlugin::default())
.add_systems(Startup, setup)
.add_systems(Update, draw)
.run();
}
fn setup(mut commands: Commands) {
// Spawn the camera
commands.spawn(Camera2d);
}
fn draw(mut painter: ShapePainter) {
// Draw a circle
painter.circle(100.0);
}
| bevy | bevy_vector_shapes |
|---|---|
| 0.20 | 0.14.0 |
| 0.19 | 0.13.1 |
| 0.18 | 0.12.1 |
| 0.17 | 0.11.1 |
| 0.16 | 0.10.0 |
| 0.15 | 0.9.3 |
| 0.14 | 0.8.2 |
| 0.13 | 0.7.0 |
| 0.12 | 0.6.0 |
| 0.11 | 0.5.2 |
| 0.10 | 0.4.6 |
537 followers · starred Dec 2023
260 followers · starred May 2025
565 followers · starred Jul 2023
261 followers · starred Sep 2023