File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,20 @@ fn main() {
14
14
}
15
15
16
16
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 ( )
20
21
} ;
21
22
22
23
commands
23
24
. spawn ( OrthographicCameraBundle :: new_2d ( ) )
24
25
. spawn ( GeometryBuilder :: build_as (
25
- & circle ,
26
- ShapeColors :: outlined ( Color :: GOLD , Color :: BLACK ) ,
26
+ & shape ,
27
+ ShapeColors :: outlined ( Color :: TEAL , Color :: BLACK ) ,
27
28
DrawMode :: Outlined {
28
29
fill_options : FillOptions :: default ( ) ,
29
- outline_options : StrokeOptions :: default ( ) . with_line_width ( 5 .0) ,
30
+ outline_options : StrokeOptions :: default ( ) . with_line_width ( 10 .0) ,
30
31
} ,
31
32
Transform :: default ( ) ,
32
33
) ) ;
You can’t perform that action at this time.
0 commit comments