Bevy + Lyon = ❤
bevy_prototype_lyon
enables Bevy users to draw 2D shapes and paths, like triangles, circles, rectangles, lines, arcs and beziers.
How does it work?
Currently Bevy does not support drawing custom shapes in an easy way. This crate uses Bevy's SpriteBundle
bundle and replaces its default quad mesh with a custom mesh.
Here the lyon crate is used to generate that custom mesh.
Changelog
0.1.4
- adds support to
bevy 0.4.0
.
0.1.3
- adds support to
bevy 0.3.0
.
Usage
Add the following line in your cargo.toml
manifest file, under the [dependencies]
section:
= "0.1.4"
Then, you can start by drawing simple shapes:
use *;
use *;
Don't forget to check out the examples to learn more!