Skip to content

Commit 4ed114b

Browse files
committed
Change readme example shape
1 parent 1530a1b commit 4ed114b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

examples/readme_example.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ fn main() {
1414
}
1515

1616
fn setup(mut commands: Commands) {
17-
let circle = shapes::Circle {
18-
radius: 100.0,
19-
..shapes::Circle::default()
17+
let shape = shapes::RegularPolygon {
18+
sides: 6,
19+
feature: shapes::RegularPolygonFeature::Radius(200.0),
20+
..shapes::RegularPolygon::default()
2021
};
2122

2223
commands
2324
.spawn(OrthographicCameraBundle::new_2d())
2425
.spawn(GeometryBuilder::build_as(
25-
&circle,
26-
ShapeColors::outlined(Color::GOLD, Color::BLACK),
26+
&shape,
27+
ShapeColors::outlined(Color::TEAL, Color::BLACK),
2728
DrawMode::Outlined {
2829
fill_options: FillOptions::default(),
29-
outline_options: StrokeOptions::default().with_line_width(5.0),
30+
outline_options: StrokeOptions::default().with_line_width(10.0),
3031
},
3132
Transform::default(),
3233
));

0 commit comments

Comments
 (0)