add comment for arc()

This commit is contained in:
histausse 2022-01-14 22:39:03 +01:00
parent 681139064e
commit 0cf23255fb
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -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();