-
Notifications
You must be signed in to change notification settings - Fork 150
/
hparams.py
45 lines (37 loc) · 1 KB
/
hparams.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
45
from PyQt5.QtCore import *
from PyQt5.QtGui import *
DART_THEME = False
BRUSH_MULT = 3
SPRAY_PAINT_MULT = 5
SPRAY_PAINT_N = 100
COLORS = [
'#000000', '#82817f', '#820300', '#868417', '#007e03', '#037e7b', '#040079',
'#81067a', '#7f7e45', '#05403c', '#0a7cf6', '#093c7e', '#7e07f9', '#7c4002',
'#ffffff', '#c1c1c1', '#f70406', '#fffd00', '#08fb01', '#0bf8ee', '#0000fa',
'#b92fc2', '#fffc91', '#00fd83', '#87f9f9', '#8481c4', '#dc137d', '#fb803c',
]
FONT_SIZES = [7, 8, 9, 10, 11, 12, 13, 14, 18, 24, 36, 48, 64, 72, 96, 144, 288]
MODES = [
# 'selectpoly',
# 'selectrect',
'eraser',
# 'fill',
# 'dropper',
# 'stamp',
'pen',
# 'brush',
# 'spray',
# 'text',
'line',
'polyline',
# 'clear',
# 'rect',
'polygon',
# 'ellipse',
# 'roundrect'
]
CANVAS_DIMENSIONS = 256, 256
MODEL_DIMENSIONS = 256, 256
# USE_GPU = False
SELECTION_PEN = QPen(QColor(0xff, 0xff, 0xff), 1, Qt.DashLine)
PREVIEW_PEN = QPen(QColor(0xff, 0xff, 0xff), 1, Qt.SolidLine)