Skip to content

Commit aaff6b3

Browse files
committed
updated readme
1 parent 12d1393 commit aaff6b3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
PINP Is Not msPaint
55

6-
<img src="readme_assets/image4.png"></img>
6+
<img src="readme_assets/image5.png"></img>
77

88
## Install
99

color_picker.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ def draw_color_picker(screen):
6161

6262
left_margin = 85
6363

64+
top_margin = screen_height - COLOR_PICKER_HEIGHT
65+
6466
# print(screen_height, screen_width)
6567

66-
pygame.draw.rect(screen,(212,208,200),(0,screen_height-COLOR_PICKER_HEIGHT,screen_width,COLOR_PICKER_HEIGHT),0)
68+
pygame.draw.rect(screen,(212,208,200),(0,top_margin,screen_width,COLOR_PICKER_HEIGHT),0)
6769
pygame.draw.rect(screen,(255,255,255),(left_margin-3,screen_height-52,352,49),0)
6870

6971
for index, default_color in enumerate(default_colors):
@@ -101,7 +103,8 @@ def draw_color_picker(screen):
101103
pygame.draw.rect(screen,get_secondary_color(),(25+(size_block//2),screen_height-45 + (size_block//2),size_block,size_block),0)
102104
pygame.draw.rect(screen,get_primary_color(),(25,screen_height-45,size_block,size_block),0)
103105

104-
pygame.draw.line(screen, (255,255,255), (0, screen_height - COLOR_PICKER_HEIGHT), (screen_width, screen_height - COLOR_PICKER_HEIGHT))
106+
pygame.draw.line(screen, (255,255,255), (0, top_margin), (screen_width, top_margin))
107+
pygame.draw.line(screen, (128,128,128), (0, screen_height - 1), (screen_width, screen_height - 1))
105108

106109
def check_positions(pos, color_func):
107110
for index, color_position in enumerate(color_positions):

readme_assets/image5.png

13.9 KB
Loading

0 commit comments

Comments
 (0)