-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
44 lines (44 loc) · 1.25 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# WINDOW SETTINGS
WINDOW_WIDTH = 500
WINDOW_HEIGHT = 600
BACKGROUND_COLOR = '#898685'
# PIXELS SETTINGS
DEFAULT_PIXEL_COLOR = '#ffffff'
WIDTH_INITIAL_IMAGE = 20 # the width of the initial image (n)
HEIGHT_INITIAL_IMAGE = 20 # the height of the initial image (m)
PIXEL_ZONE = (40, 170) # the zone where the pixels are drawn (x1, y1)
PIXEL_SIZE = 20 # the size of the pixels
# COLORS SHORTCUT BAR
MAIN_COLORS = ('#000000', '#ff0000', '#ff8000', '#00ff00', '#32cd32',
'#ffff00', '#0000ff', '#1e90ff', '#ff69b4', '#8a2be2')
HEIGHT_COLOR_BAR = (80, 115)
WIDTH_COLOR_BAR = (40, 439.5)
X1_FIRST_COLOR = 40
WIDTH_COLOR_BOX = 35
SEPARATION_BETWEEN_COLORS = 5.5
# SAVE/LOAD BUTTONS
HEIGHT_FILE_BUTTONS = (40, 70)
LOAD_PPM_BUTTON = (40, 160)
SAVE_PPM_BUTTON = (180, 300)
SAVE_PNG_BUTTON = (320, 440)
HEIGHT_FILE_TEXT = 56
X_LOAD_PPM_TEXT = 105
X_SAVE_PPM_TEXT = 250
X_SAVE_PNG_TEXT = 390
# TITLE
TITLE_COLOR = '#CFC4C0'
HEIGHT_TITLE = 35
WIDTH_TEXT_TITLE = 250
HEIGHT_TEXT_TITLE = 18
# UI TOOLBAR
HEIGHT_TOOL_BAR = (125, 160)
UNDO = (40, 75)
REDO = (80.5, 115.5)
BUCKET = (121, 156)
ERASER = (161.5, 196.5)
PIXELED = (202, 237)
TRASH = (242.5, 277.5)
INPUT_COLORS = (283, 318)
CUSTOM_COLOR_1 = (323.5, 358.5)
CUSTOM_COLOR_2 = (364.0, 399.0)
CUSTOM_COLOR_3 = (404.5, 439.5)