Galactic: lint CO2 example

pull/700/head
Hel Gibbons 2023-03-01 13:55:40 +00:00
rodzic bc49a69416
commit 421e715f06
1 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -69,7 +69,7 @@ while True:
# calculate a colour from the co2 reading
hue = max(0, HUE_START + ((co2 - MIN) * (HUE_END - HUE_START) / (MAX - MIN)))
# create pens with this colour (and for the stored highest / lowest values)
# create pens with this colour (and with the high / low colours)
CURRENT_COLOUR = graphics.create_pen_hsv(hue / 360, 1.0, 0.8)
HIGH_COLOUR = graphics.create_pen_hsv(HUE_END / 360, 1.0, 0.8)
LOW_COLOUR = graphics.create_pen_hsv(HUE_START / 360, 1.0, 0.8)