added a dark tone to the primary color
This commit is contained in:
7
main.py
7
main.py
@ -9,6 +9,7 @@ screen = pygame.display.set_mode((screenW, screenH))
|
|||||||
|
|
||||||
color_primary = (0, 190, 180)
|
color_primary = (0, 190, 180)
|
||||||
color_primary_light = (0, 255, 245)
|
color_primary_light = (0, 255, 245)
|
||||||
|
color_primary_dark = (0, 110, 115)
|
||||||
|
|
||||||
# Create and position the knobs
|
# Create and position the knobs
|
||||||
knobs_radius = screenW / 25
|
knobs_radius = screenW / 25
|
||||||
@ -40,7 +41,7 @@ def display_label(index):
|
|||||||
label_y = (screenH - fx_label.get_height() - fx_value.get_height()) / 2
|
label_y = (screenH - fx_label.get_height() - fx_value.get_height()) / 2
|
||||||
screen.blit(fx_label, (label_x, label_y))
|
screen.blit(fx_label, (label_x, label_y))
|
||||||
screen.blit(fx_value, (label_x, screenH / 2))
|
screen.blit(fx_value, (label_x, screenH / 2))
|
||||||
pygame.draw.line(screen, color_primary_light, (label_x - 10, label_y), (label_x - 10, screenH - label_y), 2)
|
pygame.draw.line(screen, color_primary_dark, (label_x - 10, label_y), (label_x - 10, screenH - label_y), 2)
|
||||||
|
|
||||||
line_points = []
|
line_points = []
|
||||||
line_points.append(knobs[index].get_position())
|
line_points.append(knobs[index].get_position())
|
||||||
@ -66,7 +67,7 @@ def display_label(index):
|
|||||||
line_points.append((label_x - 10, screenH/2))
|
line_points.append((label_x - 10, screenH/2))
|
||||||
|
|
||||||
for i in range(len(line_points)-1):
|
for i in range(len(line_points)-1):
|
||||||
pygame.draw.line(screen, color_primary_light, line_points[i], line_points[i+1], 2)
|
pygame.draw.line(screen, color_primary_dark, line_points[i], line_points[i+1], 2)
|
||||||
|
|
||||||
knobs[index].set_value(0.86)
|
knobs[index].set_value(0.86)
|
||||||
knobs[index].set_color(color_primary_light)
|
knobs[index].set_color(color_primary_light)
|
||||||
@ -83,7 +84,7 @@ while running:
|
|||||||
|
|
||||||
# RENDER YOUR GAME HERE
|
# RENDER YOUR GAME HERE
|
||||||
|
|
||||||
display_label(7)
|
display_label(4)
|
||||||
|
|
||||||
for i in range(8):
|
for i in range(8):
|
||||||
knobs[i].display()
|
knobs[i].display()
|
||||||
|
|||||||
Reference in New Issue
Block a user