Skip to content

Commit

Permalink
Get use of trunk color.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzet committed Jul 6, 2023
1 parent f0b3d19 commit ce42f4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion map_machine/feature/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ def draw(self, svg: Drawing, flinger: Flinger, scheme: Scheme) -> None:

if (circumference := self.get_float("circumference")) is not None:
radius: float = circumference / 2.0 / np.pi
svg.add(svg.circle(self.point, radius * scale, fill="#B89A74"))
circle = svg.circle(
self.point, radius * scale, fill=scheme.get_color("trunk_color")
)
svg.add(circle)

0 comments on commit ce42f4f

Please sign in to comment.