Skip to content

Commit 017ffc5

Browse files
authored
Add the annulus shape to the 2d_shapes example (#12742)
# Objective - Depends on #12734. Since adding the `Annulus` primitive shape (#12706, #12734), the `2d_shapes` example has become outdated. ## Solution This PR adds the annulus shape to the `2d_shapes` example: ![image](https://github.com/bevyengine/bevy/assets/37378746/e620362d-bec6-4660-bf6e-d70babff8179) --- ## Changelog ### Added - `Annulus` shape to the `2d_shapes` example (~~as an added bonus, the example now features Newton's [ROYGBIV](https://en.wikipedia.org/wiki/ROYGBIV) rainbow palette ^^~~ no it doesn't, but one can shoehorn..)
1 parent 06738bf commit 017ffc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/2d/2d_shapes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fn setup(
2424
let shapes = [
2525
Mesh2dHandle(meshes.add(Circle { radius: 50.0 })),
2626
Mesh2dHandle(meshes.add(Ellipse::new(25.0, 50.0))),
27+
Mesh2dHandle(meshes.add(Annulus::new(25.0, 50.0))),
2728
Mesh2dHandle(meshes.add(Capsule2d::new(25.0, 50.0))),
2829
Mesh2dHandle(meshes.add(Rectangle::new(50.0, 100.0))),
2930
Mesh2dHandle(meshes.add(RegularPolygon::new(50.0, 6))),

0 commit comments

Comments
 (0)