From 53671b21fba22fd3ec0bc24704a039f59ef5e30e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 18 May 2022 17:15:27 +0200 Subject: [PATCH] Add a circle with the background colour around day parts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …so it smoothens the edges! --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5b1b407..3b7afde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -303,13 +303,20 @@ fn gen_svg() -> Document { let nighttime_path = get_range_path(image_width, marker_radius, "night-time", dawn, dusk); + let marker_circle = Circle::new() + .set("class", "marker") + .set("cx", image_width / 2) + .set("cy", image_width / 2) + .set("r", marker_radius); + let day_parts_group = Group::new() .set("id", "day-parts") .add(daytime_circle) .add(golden_hour_path) .add(sun_disc) .add(blue_hour_path) - .add(nighttime_path); + .add(nighttime_path) + .add(marker_circle); let moon_circle = Circle::new() .set("class", "moon-background")