-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
88 lines (78 loc) · 2.03 KB
/
config.py
File metadata and controls
88 lines (78 loc) · 2.03 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Configuration file for Advanced Sorting Algorithm Visualizer
# Modify these values to customize the application
# Window Settings
WINDOW_WIDTH = 1200
WINDOW_HEIGHT = 800
FPS = 60
# Array Settings
DEFAULT_ARRAY_SIZE = 60
MIN_ARRAY_SIZE = 10
MAX_ARRAY_SIZE = 200
DEFAULT_MIN_VALUE = 10
DEFAULT_MAX_VALUE = 200
# Animation Settings
DEFAULT_SPEED = 5
MIN_SPEED = 1
MAX_SPEED = 10
STEP_MODE_DEFAULT = False
# Visual Settings
DEFAULT_THEME = "dark" # Options: "dark", "light", "neon"
SHOW_VALUES_THRESHOLD = 20 # Show values on bars when array size <= this
BORDER_WIDTH = 1
# Color Themes (RGB values)
THEMES = {
"dark": {
"background": (30, 30, 30),
"primary": (70, 70, 70),
"secondary": (100, 100, 100),
"accent": (130, 130, 130),
"text": (255, 255, 255),
"comparing": (255, 165, 0),
"swapping": (255, 69, 0),
"sorted": (50, 205, 50),
"current": (138, 43, 226)
},
"light": {
"background": (245, 245, 245),
"primary": (200, 200, 200),
"secondary": (170, 170, 170),
"accent": (140, 140, 140),
"text": (50, 50, 50),
"comparing": (255, 140, 0),
"swapping": (255, 69, 0),
"sorted": (34, 139, 34),
"current": (138, 43, 226)
},
"neon": {
"background": (15, 15, 15),
"primary": (0, 255, 255),
"secondary": (255, 0, 255),
"accent": (255, 255, 0),
"text": (255, 255, 255),
"comparing": (255, 20, 147),
"swapping": (255, 69, 0),
"sorted": (50, 255, 50),
"current": (138, 43, 226)
}
}
# Layout Settings
SIDE_PADDING = 120
TOP_PADDING = 200
BOTTOM_PADDING = 80
STATS_HEIGHT = 100
# Font Settings
FONT_SIZES = {
"small": 24,
"medium": 32,
"large": 48,
"title": 56
}
# Statistics Settings
SHOW_STATISTICS = True
SHOW_REAL_TIME_STATS = True
# Performance Settings
YIELD_FREQUENCY = 1 # How often to yield during sorting (1 = every operation)
BACKGROUND_TASKS = True
# Debug Settings
DEBUG_MODE = False
VERBOSE_LOGGING = False