From 0cf23255fb6ce47a6d84a9b8e4867adf06bb308a Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Fri, 14 Jan 2022 22:39:03 +0100 Subject: [PATCH] add comment for arc() --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 7252919..c898e6a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,6 +20,8 @@ pub fn start() { context.begin_path(); +// arc(x, y, radius, startAngle, endAngle, counterclockwise) +// Draws an arc which is centered at (x, y) position with radius r starting at startAngle and ending at endAngle going in the given direction indicated by counterclockwise (defaulting to clockwise). context .arc(75.0, 75.0, 50.0, 0.0, f64::consts::PI * 2.0) .unwrap();