Skip to content

Commit

Permalink
Merge pull request #26 from btmills/master
Browse files Browse the repository at this point in the history
Fix missing hex_val conversions
  • Loading branch information
Jason Long committed Feb 22, 2014
2 parents aa234be + 2e5a6f4 commit 36e0c98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/geo_pattern/pattern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -678,15 +678,15 @@ def geo_mosaic_squares

if (x % 2 == 0)
if (y % 2 == 0)
draw_outer_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, hash[i])
draw_outer_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, hex_val(i, 1))
else
draw_inner_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, hash[i..i+1])
draw_inner_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, [hex_val(i, 1), hex_val(i+1, 1)])
end
else
if (y % 2 == 0)
draw_inner_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, hash[i..i+1])
draw_inner_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, [hex_val(i, 1), hex_val(i+1, 1)])
else
draw_outer_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, hash[i])
draw_outer_mosaic_tile(x*triangle_size*2, y*triangle_size*2, triangle_size, hex_val(i, 1))
end
end
i += 1
Expand Down

2 comments on commit 36e0c98

@andrew
Copy link

@andrew andrew commented on 36e0c98 Feb 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great if you can publish this as 1.1.3

@jasonlong
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrew Yep, coming right up...

Please sign in to comment.