Skip to content

Commit

Permalink
add block border line
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexi committed Feb 17, 2022
1 parent ca3af51 commit 6babcd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion graphic.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ def diff_draw(game_map: list[list]):
def draw_block(x: int, y: int, color: int):
x *= tetromino_width
y *= tetromino_width
display.fill_rect(x, y, tetromino_width, tetromino_width, color)
border_width = 1
display.fill_rect(x, y, tetromino_width, tetromino_width, st7789.BLACK)
display.fill_rect(x+border_width, y+border_width,
tetromino_width-2*border_width,
tetromino_width-2*border_width, color)


def draw_num(num: int, setting: dict):
Expand Down
Empty file added img/gif2jpg.py
Empty file.
Binary file added img/pikachu-love.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6babcd3

Please sign in to comment.