Skip to content

Commit

Permalink
try to fix rectangle overlap in sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jun 15, 2024
1 parent 7b85af8 commit b1b15fd
Show file tree
Hide file tree
Showing 211 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/make-sprites.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def make_sprite(light, dark, pieces, check_gradient):
for x in range(8):
# Background
fill = light if x % 2 == 0 else dark
rect = (x * SQUARE_SIZE, 0, (x + 1) * SQUARE_SIZE, SQUARE_SIZE * 8)
rect = (x * SQUARE_SIZE, 0, (x + 1) * SQUARE_SIZE - 1, SQUARE_SIZE * 8 - 1)
draw.rectangle(rect, fill=fill)
if x in [2, 3, 6, 7]:
draw.rectangle(rect, fill=HIGHLIGHT)
Expand All @@ -107,7 +107,7 @@ def make_sprite(light, dark, pieces, check_gradient):

for i, color in enumerate(NONTHEME_COLORS):
width = 4 * SQUARE_SIZE / len(NONTHEME_COLORS)
draw.rectangle((4 * SQUARE_SIZE + i * width, 0, 4 * SQUARE_SIZE + (i + 1) * width, SQUARE_SIZE), fill=color)
draw.rectangle((4 * SQUARE_SIZE + i * width, 0, 4 * SQUARE_SIZE + (i + 1) * width - 1, SQUARE_SIZE - 1), fill=color)

return image.quantize(64, dither=0)

Expand Down
Binary file modified theme/sprites/blue-alpha.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-anarcandy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-caliente.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-california.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-cardinal.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-cburnett.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-celtic.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-chess7.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-chessnut.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-companion.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-cooke.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-disguised.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-dubrovny.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-fantasy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-fresca.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-gioco.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-governor.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-horsey.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-icpieces.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-kiwen-suwi.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-kosal.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-leipzig.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-letter.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-libra.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-maestro.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/sprites/blue-merida.gif
Binary file modified theme/sprites/blue-mpchess.gif
Binary file modified theme/sprites/blue-pirouetti.gif
Binary file modified theme/sprites/blue-pixel.gif
Binary file modified theme/sprites/blue-reillycraig.gif
Binary file modified theme/sprites/blue-riohacha.gif
Binary file modified theme/sprites/blue-shapes.gif
Binary file modified theme/sprites/blue-spatial.gif
Binary file modified theme/sprites/blue-staunty.gif
Binary file modified theme/sprites/blue-tatiana.gif
Binary file modified theme/sprites/brown-alpha.gif
Binary file modified theme/sprites/brown-anarcandy.gif
Binary file modified theme/sprites/brown-caliente.gif
Binary file modified theme/sprites/brown-california.gif
Binary file modified theme/sprites/brown-cardinal.gif
Binary file modified theme/sprites/brown-cburnett.gif
Binary file modified theme/sprites/brown-celtic.gif
Binary file modified theme/sprites/brown-chess7.gif
Binary file modified theme/sprites/brown-chessnut.gif
Binary file modified theme/sprites/brown-companion.gif
Binary file modified theme/sprites/brown-cooke.gif
Binary file modified theme/sprites/brown-disguised.gif
Binary file modified theme/sprites/brown-dubrovny.gif
Binary file modified theme/sprites/brown-fantasy.gif
Binary file modified theme/sprites/brown-fresca.gif
Binary file modified theme/sprites/brown-gioco.gif
Binary file modified theme/sprites/brown-governor.gif
Binary file modified theme/sprites/brown-horsey.gif
Binary file modified theme/sprites/brown-icpieces.gif
Binary file modified theme/sprites/brown-kiwen-suwi.gif
Binary file modified theme/sprites/brown-kosal.gif
Binary file modified theme/sprites/brown-leipzig.gif
Binary file modified theme/sprites/brown-letter.gif
Binary file modified theme/sprites/brown-libra.gif
Binary file modified theme/sprites/brown-maestro.gif
Binary file modified theme/sprites/brown-merida.gif
Binary file modified theme/sprites/brown-mpchess.gif
Binary file modified theme/sprites/brown-pirouetti.gif
Binary file modified theme/sprites/brown-pixel.gif
Binary file modified theme/sprites/brown-reillycraig.gif
Binary file modified theme/sprites/brown-riohacha.gif
Binary file modified theme/sprites/brown-shapes.gif
Binary file modified theme/sprites/brown-spatial.gif
Binary file modified theme/sprites/brown-staunty.gif
Binary file modified theme/sprites/brown-tatiana.gif
Binary file modified theme/sprites/green-alpha.gif
Binary file modified theme/sprites/green-anarcandy.gif
Binary file modified theme/sprites/green-caliente.gif
Binary file modified theme/sprites/green-california.gif
Binary file modified theme/sprites/green-cardinal.gif
Binary file modified theme/sprites/green-cburnett.gif
Binary file modified theme/sprites/green-celtic.gif
Binary file modified theme/sprites/green-chess7.gif
Binary file modified theme/sprites/green-chessnut.gif
Binary file modified theme/sprites/green-companion.gif
Binary file modified theme/sprites/green-cooke.gif
Binary file modified theme/sprites/green-disguised.gif
Binary file modified theme/sprites/green-dubrovny.gif
Binary file modified theme/sprites/green-fantasy.gif
Binary file modified theme/sprites/green-fresca.gif
Binary file modified theme/sprites/green-gioco.gif
Binary file modified theme/sprites/green-governor.gif
Binary file modified theme/sprites/green-horsey.gif
Binary file modified theme/sprites/green-icpieces.gif
Binary file modified theme/sprites/green-kiwen-suwi.gif
Binary file modified theme/sprites/green-kosal.gif
Binary file modified theme/sprites/green-leipzig.gif
Binary file modified theme/sprites/green-letter.gif
Binary file modified theme/sprites/green-libra.gif
Binary file modified theme/sprites/green-maestro.gif
Binary file modified theme/sprites/green-merida.gif
Binary file modified theme/sprites/green-mpchess.gif
Binary file modified theme/sprites/green-pirouetti.gif
Binary file modified theme/sprites/green-pixel.gif
Binary file modified theme/sprites/green-reillycraig.gif
Binary file modified theme/sprites/green-riohacha.gif
Binary file modified theme/sprites/green-shapes.gif
Binary file modified theme/sprites/green-spatial.gif
Binary file modified theme/sprites/green-staunty.gif
Binary file modified theme/sprites/green-tatiana.gif
Binary file modified theme/sprites/ic-alpha.gif
Binary file modified theme/sprites/ic-anarcandy.gif
Binary file modified theme/sprites/ic-caliente.gif
Binary file modified theme/sprites/ic-california.gif
Binary file modified theme/sprites/ic-cardinal.gif
Binary file modified theme/sprites/ic-cburnett.gif
Binary file modified theme/sprites/ic-celtic.gif
Binary file modified theme/sprites/ic-chess7.gif
Binary file modified theme/sprites/ic-chessnut.gif
Binary file modified theme/sprites/ic-companion.gif
Binary file modified theme/sprites/ic-cooke.gif
Binary file modified theme/sprites/ic-disguised.gif
Binary file modified theme/sprites/ic-dubrovny.gif
Binary file modified theme/sprites/ic-fantasy.gif
Binary file modified theme/sprites/ic-fresca.gif
Binary file modified theme/sprites/ic-gioco.gif
Binary file modified theme/sprites/ic-governor.gif
Binary file modified theme/sprites/ic-horsey.gif
Binary file modified theme/sprites/ic-icpieces.gif
Binary file modified theme/sprites/ic-kiwen-suwi.gif
Binary file modified theme/sprites/ic-kosal.gif
Binary file modified theme/sprites/ic-leipzig.gif
Binary file modified theme/sprites/ic-letter.gif
Binary file modified theme/sprites/ic-libra.gif
Binary file modified theme/sprites/ic-maestro.gif
Binary file modified theme/sprites/ic-merida.gif
Binary file modified theme/sprites/ic-mpchess.gif
Binary file modified theme/sprites/ic-pirouetti.gif
Binary file modified theme/sprites/ic-pixel.gif
Binary file modified theme/sprites/ic-reillycraig.gif
Binary file modified theme/sprites/ic-riohacha.gif
Binary file modified theme/sprites/ic-shapes.gif
Binary file modified theme/sprites/ic-spatial.gif
Binary file modified theme/sprites/ic-staunty.gif
Binary file modified theme/sprites/ic-tatiana.gif
Binary file modified theme/sprites/pink-alpha.gif
Binary file modified theme/sprites/pink-anarcandy.gif
Binary file modified theme/sprites/pink-caliente.gif
Binary file modified theme/sprites/pink-california.gif
Binary file modified theme/sprites/pink-cardinal.gif
Binary file modified theme/sprites/pink-cburnett.gif
Binary file modified theme/sprites/pink-celtic.gif
Binary file modified theme/sprites/pink-chess7.gif
Binary file modified theme/sprites/pink-chessnut.gif
Binary file modified theme/sprites/pink-companion.gif
Binary file modified theme/sprites/pink-cooke.gif
Binary file modified theme/sprites/pink-disguised.gif
Binary file modified theme/sprites/pink-dubrovny.gif
Binary file modified theme/sprites/pink-fantasy.gif
Binary file modified theme/sprites/pink-fresca.gif
Binary file modified theme/sprites/pink-gioco.gif
Binary file modified theme/sprites/pink-governor.gif
Binary file modified theme/sprites/pink-horsey.gif
Binary file modified theme/sprites/pink-icpieces.gif
Binary file modified theme/sprites/pink-kiwen-suwi.gif
Binary file modified theme/sprites/pink-kosal.gif
Binary file modified theme/sprites/pink-leipzig.gif
Binary file modified theme/sprites/pink-letter.gif
Binary file modified theme/sprites/pink-libra.gif
Binary file modified theme/sprites/pink-maestro.gif
Binary file modified theme/sprites/pink-merida.gif
Binary file modified theme/sprites/pink-mpchess.gif
Binary file modified theme/sprites/pink-pirouetti.gif
Binary file modified theme/sprites/pink-pixel.gif
Binary file modified theme/sprites/pink-reillycraig.gif
Binary file modified theme/sprites/pink-riohacha.gif
Binary file modified theme/sprites/pink-shapes.gif
Binary file modified theme/sprites/pink-spatial.gif
Binary file modified theme/sprites/pink-staunty.gif
Binary file modified theme/sprites/pink-tatiana.gif
Binary file modified theme/sprites/purple-alpha.gif
Binary file modified theme/sprites/purple-anarcandy.gif
Binary file modified theme/sprites/purple-caliente.gif
Binary file modified theme/sprites/purple-california.gif
Binary file modified theme/sprites/purple-cardinal.gif
Binary file modified theme/sprites/purple-cburnett.gif
Binary file modified theme/sprites/purple-celtic.gif
Binary file modified theme/sprites/purple-chess7.gif
Binary file modified theme/sprites/purple-chessnut.gif
Binary file modified theme/sprites/purple-companion.gif
Binary file modified theme/sprites/purple-cooke.gif
Binary file modified theme/sprites/purple-disguised.gif
Binary file modified theme/sprites/purple-dubrovny.gif
Binary file modified theme/sprites/purple-fantasy.gif
Binary file modified theme/sprites/purple-fresca.gif
Binary file modified theme/sprites/purple-gioco.gif
Binary file modified theme/sprites/purple-governor.gif
Binary file modified theme/sprites/purple-horsey.gif
Binary file modified theme/sprites/purple-icpieces.gif
Binary file modified theme/sprites/purple-kiwen-suwi.gif
Binary file modified theme/sprites/purple-kosal.gif
Binary file modified theme/sprites/purple-leipzig.gif
Binary file modified theme/sprites/purple-letter.gif
Binary file modified theme/sprites/purple-libra.gif
Binary file modified theme/sprites/purple-maestro.gif
Binary file modified theme/sprites/purple-merida.gif
Binary file modified theme/sprites/purple-mpchess.gif
Binary file modified theme/sprites/purple-pirouetti.gif
Binary file modified theme/sprites/purple-pixel.gif
Binary file modified theme/sprites/purple-reillycraig.gif
Binary file modified theme/sprites/purple-riohacha.gif
Binary file modified theme/sprites/purple-shapes.gif
Binary file modified theme/sprites/purple-spatial.gif
Binary file modified theme/sprites/purple-staunty.gif
Binary file modified theme/sprites/purple-tatiana.gif

0 comments on commit b1b15fd

Please sign in to comment.