Add a circle with the background colour around day parts
…so it smoothens the edges!
This commit is contained in:
parent
a613855a66
commit
53671b21fb
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user