@@ -35,8 +35,17 @@ fn sketch() -> error::Result<()> {
3535
3636 // thin wireframe box
3737 graphics_record_command ( graphics, DrawCommand :: PushMatrix ) ?;
38- graphics_record_command ( graphics, DrawCommand :: Translate ( Vec2 :: new ( -80.0 , 0.0 ) . extend ( 0.0 ) ) ) ?;
39- graphics_record_command ( graphics, DrawCommand :: Rotate { angle, axis : Vec3 :: Z } ) ?;
38+ graphics_record_command (
39+ graphics,
40+ DrawCommand :: Translate ( Vec2 :: new ( -80.0 , 0.0 ) . extend ( 0.0 ) ) ,
41+ ) ?;
42+ graphics_record_command (
43+ graphics,
44+ DrawCommand :: Rotate {
45+ angle,
46+ axis : Vec3 :: Z ,
47+ } ,
48+ ) ?;
4049
4150 graphics_record_command (
4251 graphics,
@@ -61,7 +70,13 @@ fn sketch() -> error::Result<()> {
6170 // thick wireframe box
6271 graphics_record_command ( graphics, DrawCommand :: PushMatrix ) ?;
6372 graphics_record_command ( graphics, DrawCommand :: Translate ( Vec2 :: ZERO . extend ( 0.0 ) ) ) ?;
64- graphics_record_command ( graphics, DrawCommand :: Rotate { angle : angle * 0.7 , axis : Vec3 :: Z } ) ?;
73+ graphics_record_command (
74+ graphics,
75+ DrawCommand :: Rotate {
76+ angle : angle * 0.7 ,
77+ axis : Vec3 :: Z ,
78+ } ,
79+ ) ?;
6580
6681 graphics_record_command (
6782 graphics,
@@ -85,8 +100,17 @@ fn sketch() -> error::Result<()> {
85100
86101 // thick wireframe sphere
87102 graphics_record_command ( graphics, DrawCommand :: PushMatrix ) ?;
88- graphics_record_command ( graphics, DrawCommand :: Translate ( Vec2 :: new ( 80.0 , 0.0 ) . extend ( 0.0 ) ) ) ?;
89- graphics_record_command ( graphics, DrawCommand :: Rotate { angle : angle * 0.5 , axis : Vec3 :: Z } ) ?;
103+ graphics_record_command (
104+ graphics,
105+ DrawCommand :: Translate ( Vec2 :: new ( 80.0 , 0.0 ) . extend ( 0.0 ) ) ,
106+ ) ?;
107+ graphics_record_command (
108+ graphics,
109+ DrawCommand :: Rotate {
110+ angle : angle * 0.5 ,
111+ axis : Vec3 :: Z ,
112+ } ,
113+ ) ?;
90114
91115 graphics_record_command (
92116 graphics,
@@ -110,7 +134,10 @@ fn sketch() -> error::Result<()> {
110134
111135 // wireframe-only sphere (no fill)
112136 graphics_record_command ( graphics, DrawCommand :: PushMatrix ) ?;
113- graphics_record_command ( graphics, DrawCommand :: Translate ( Vec2 :: new ( 160.0 , 0.0 ) . extend ( 0.0 ) ) ) ?;
137+ graphics_record_command (
138+ graphics,
139+ DrawCommand :: Translate ( Vec2 :: new ( 160.0 , 0.0 ) . extend ( 0.0 ) ) ,
140+ ) ?;
114141 graphics_record_command (
115142 graphics,
116143 DrawCommand :: Rotate {
0 commit comments