|
|
@ -26,19 +26,9 @@ pub fn start() {
|
|
|
|
|
|
|
|
|
|
|
|
context.begin_path();
|
|
|
|
context.begin_path();
|
|
|
|
|
|
|
|
|
|
|
|
let iter = CircleShapes::new(10, 2, Circle {center: Point {x: 75.0, y: 75.0}, radius: 70.0});
|
|
|
|
let iter = CircleShapes::new(100, 13, Circle {center: Point {x: 75.0, y: 75.0}, radius: 70.0});
|
|
|
|
for shape in iter {
|
|
|
|
for shape in iter {
|
|
|
|
drawing::draw_shape(shape, &context);
|
|
|
|
drawing::draw_shape(shape, &context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
drawing::draw_circle(Circle {center: Point {x: 75.0, y: 75.0}, radius: 70.0}, &context);
|
|
|
|
|
|
|
|
drawing::draw_circle(Circle {center: Point {x: 75.0, y: 75.0}, radius: 35.0}, &context);
|
|
|
|
|
|
|
|
drawing::draw_circle(Circle {center: Point {x: 60.0, y: 65.0}, radius: 5.0}, &context);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
drawing::draw_line(Line {p1: Point {x: 0.0, y: 0.0}, p2: Point {x: 150.0, y: 150.0}}, &context);
|
|
|
|
|
|
|
|
drawing::draw_line(Line {p1: Point {x: 0.0, y: 150.0}, p2: Point {x: 150.0, y: 0.0}}, &context);
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context.stroke();
|
|
|
|
context.stroke();
|
|
|
|
}
|
|
|
|
}
|
|
|
|