Add a circle with the background colour around day parts

…so it smoothens the edges!
This commit is contained in:
Gergely Polonkai 2022-05-18 17:15:27 +02:00
parent a613855a66
commit 53671b21fb
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
1 changed files with 8 additions and 1 deletions

View File

@ -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")