Skip to content

Commit ac27b5b

Browse files
author
Jason Long
committed
Merge pull request #29 from arcdigital/fix-nested-squares-coloring
Fixed coloring issue.
2 parents 2d58748 + 91a0ab6 commit ac27b5b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/geo_pattern/pattern.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,15 @@ def geo_nested_squares
658658
opacity = opacity(val)
659659
fill = fill_color(val)
660660

661+
styles = {
662+
"fill" => "none",
663+
"stroke" => fill,
664+
"style" => {
665+
"opacity" => opacity,
666+
"stroke-width" => "#{block_size}px"
667+
}
668+
}
669+
661670
svg.rect(x*square_size + x*block_size*2 + block_size/2 + block_size*2,
662671
y*square_size + y*block_size*2 + block_size/2 + block_size*2,
663672
block_size * 3, block_size * 3, styles)

0 commit comments

Comments
 (0)