mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 01:01:34 +00:00
cargo +nightly fmt --all
Rustfmt all the things!
This commit is contained in:
@ -25,43 +25,25 @@ pub fn draw() {
|
||||
context.begin_path();
|
||||
|
||||
// Draw the outer circle.
|
||||
context.arc(
|
||||
75.0,
|
||||
75.0,
|
||||
50.0,
|
||||
0.0,
|
||||
f64::consts::PI * 2.0,
|
||||
).unwrap();
|
||||
context
|
||||
.arc(75.0, 75.0, 50.0, 0.0, f64::consts::PI * 2.0)
|
||||
.unwrap();
|
||||
|
||||
// Draw the mouth.
|
||||
context.move_to(110.0, 75.0);
|
||||
context.arc(
|
||||
75.0,
|
||||
75.0,
|
||||
35.0,
|
||||
0.0,
|
||||
f64::consts::PI,
|
||||
).unwrap();
|
||||
context.arc(75.0, 75.0, 35.0, 0.0, f64::consts::PI).unwrap();
|
||||
|
||||
// Draw the left eye.
|
||||
context.move_to(65.0, 65.0);
|
||||
context.arc(
|
||||
60.0,
|
||||
65.0,
|
||||
5.0,
|
||||
0.0,
|
||||
f64::consts::PI * 2.0,
|
||||
).unwrap();
|
||||
context
|
||||
.arc(60.0, 65.0, 5.0, 0.0, f64::consts::PI * 2.0)
|
||||
.unwrap();
|
||||
|
||||
// Draw the right eye.
|
||||
context.move_to(95.0, 65.0);
|
||||
context.arc(
|
||||
90.0,
|
||||
65.0,
|
||||
5.0,
|
||||
0.0,
|
||||
f64::consts::PI * 2.0,
|
||||
).unwrap();
|
||||
context
|
||||
.arc(90.0, 65.0, 5.0, 0.0, f64::consts::PI * 2.0)
|
||||
.unwrap();
|
||||
|
||||
context.stroke();
|
||||
}
|
||||
|
Reference in New Issue
Block a user