Skip to content

Commit

Permalink
Merge PR #1285
Browse files Browse the repository at this point in the history
  • Loading branch information
eminence committed Mar 6, 2016
2 parents 9879bc9 + 210f2b4 commit 6682b91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions overviewer_core/textures.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,15 @@ def build_full_block(self, top, side1, side2, side3, side4, bottom=None):
top = self.transform_image_top(top)
alpha_over(img, top, (0, increment), top)

# Manually touch up 6 pixels that leave a gap because of how the
# shearing works out. This makes the blocks perfectly tessellate-able
for x,y in [(13,23), (17,21), (21,19)]:
# Copy a pixel to x,y from x-1,y
img.putpixel((x,y), img.getpixel((x-1,y)))
for x,y in [(3,4), (7,2), (11,0)]:
# Copy a pixel to x,y from x+1,y
img.putpixel((x,y), img.getpixel((x+1,y)))

return img

def build_sprite(self, side):
Expand Down

0 comments on commit 6682b91

Please sign in to comment.