From 199fea4dd24268cda3a7ed50ad12584165d886fd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 12 Jul 2020 12:04:33 +0100 Subject: [PATCH] close paths --- src/pieces.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pieces.rs b/src/pieces.rs index 6009baff..77299a99 100644 --- a/src/pieces.rs +++ b/src/pieces.rs @@ -49,15 +49,15 @@ pub fn xxx_make_pieces() -> Vec<(Pos, Box)> { Box::new(SimpleShape { desc : "circle".to_owned(), approx_dia : 20, - path : "M 10 0 a 10 10 0 1 0 -20 0\ - a 10 10 0 1 0 20 0".to_owned(), + path : "M 0 10 a 10 10 0 1 0 0 -20\ + a 10 10 0 1 0 0 20 z".to_owned(), colours : index_vec![ "red".to_string(), "grey".to_string() ], })), ([ 90, 60 ], Box::new(SimpleShape { desc : "square".to_owned(), approx_dia : 20, - path : "M -10 -10 h 20 v 20 h -20 v -20".to_owned(), + path : "M -10 -10 h 20 v 20 h -20 v -20 z".to_owned(), colours : index_vec![ "blue".to_string(), "grey".to_string() ], })), ] -- 2.30.2