From 67b50501cbedc3113fd0f63a8abe2dbbe0352598 Mon Sep 17 00:00:00 2001 From: Daniel Asher Resnick Date: Thu, 28 Dec 2023 14:36:04 -0600 Subject: [PATCH] Make path fills transparent (only want the stroke) --- HexGrid/Path.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HexGrid/Path.pm b/HexGrid/Path.pm index b16d3b3..b98feaf 100644 --- a/HexGrid/Path.pm +++ b/HexGrid/Path.pm @@ -79,9 +79,7 @@ sub render($this, $grid, $svg) my ($qx,$qy) = $grid->coords_of_centre($current_tile->nw, $current_tile->sw); ($x2,$y2) = $grid->coords_of_edge($current_tile->nw, $current_tile->sw, $next_edge); - # TODO: Draw curve from $current_tile:$previous_edge to $current_tile:$next_edge - # with $current_tile centre as the control point - $g->path(d => curve_path($x1,$y1, $qx,$qy, $x2,$y2), + $g->path(d => curve_path($x1,$y1, $qx,$qy, $x2,$y2), fill => 'transparent', stroke => $this->colour, style => $this->style, class => $this->css_class );