From 4e715750a5be7282d045f8b9d2569cb0f1773b05 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 7 Aug 2019 11:57:40 +0300 Subject: [PATCH] Apply stronger desaturation and shift from normal ligtness onto bright/dark graph lines --- graphs/style.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/graphs/style.py b/graphs/style.py index 56dd99819..a7d396e2a 100644 --- a/graphs/style.py +++ b/graphs/style.py @@ -52,11 +52,11 @@ BASE_COLORS = OrderedDict([ (GraphColor.red, ColorData((0 / 360.0, 1.0, 0.5), 'Red', 'color_red')), (GraphColor.green, ColorData((120 / 360.0, 1.0, 0.5), 'Green', 'color_green')), (GraphColor.blue, ColorData((240 / 360.0, 1.0, 0.5), 'Blue', 'color_blue')), - (GraphColor.yellow, ColorData((56 / 360.0, 1.0, 0.5), 'Yellow', 'color_yellow')), - (GraphColor.cyan, ColorData((180 / 360.0, 1.0, 0.5), 'Cyan', 'color_cyan')), - (GraphColor.magenta, ColorData((300 / 360.0, 1.0, 0.5), 'Magenta', 'color_magenta')), (GraphColor.orange, ColorData((40 / 360.0, 1.0, 0.5), 'Orange', 'color_orange')), - (GraphColor.purple, ColorData((275 / 360.0, 1.0, 0.5), 'Purple', 'color_purple'))]) + (GraphColor.magenta, ColorData((300 / 360.0, 1.0, 0.5), 'Magenta', 'color_magenta')), + (GraphColor.cyan, ColorData((180 / 360.0, 1.0, 0.5), 'Cyan', 'color_cyan')), + (GraphColor.purple, ColorData((275 / 360.0, 1.0, 0.5), 'Purple', 'color_purple')), + (GraphColor.yellow, ColorData((56 / 360.0, 1.0, 0.5), 'Yellow', 'color_yellow'))]) def hsl_to_hsv(hsl): @@ -68,12 +68,12 @@ def hsl_to_hsv(hsl): def darken(hsl): h, s, l = hsl - return h, s * 0.7, l * 0.7 + return h, s * 0.5, l * 0.5 def brighten(hsl): h, s, l = hsl - return h, s * 0.7, l + (1 - l) * 0.4 + return h, s * 0.5, l + (1 - l) * 0.5 LIGHTNESSES = OrderedDict([