From: Ian Jackson Date: Sun, 12 Jul 2020 11:04:33 +0000 (+0100) Subject: close paths X-Git-Tag: otter-0.2.0~1366 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=199fea4dd24268cda3a7ed50ad12584165d886fd;p=otter.git close paths --- 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() ], })), ]