update docs
This commit is contained in:
parent
ee52aeb34d
commit
a8c96933e3
3 changed files with 0 additions and 10 deletions
|
|
@ -26,8 +26,6 @@ from index_to_rgb.iron import index_to_rgb
|
|||
from thermalcamera_converters import celsius_to_fahrenheit, fahrenheit_to_celsius
|
||||
from thermalcamera_config import ALARM_F, MIN_RANGE_F, MAX_RANGE_F, SELFIE
|
||||
|
||||
__version__ = "0.0.0+auto.0"
|
||||
__repo__ = "https://github.com/CedarGroveStudios/ThermalCamera.git"
|
||||
|
||||
# Instantiate the integral display and define its size
|
||||
display = board.DISPLAY
|
||||
|
|
|
|||
|
|
@ -72,22 +72,18 @@ def index_to_rgb(index=0, gamma=0.5):
|
|||
red = 0.1
|
||||
grn = 0.1
|
||||
blu = (0.2 + (0.8 * map_range(band, 0, 70, 0.0, 1.0))) ** gamma
|
||||
# if band >= 70 and band < 200: # blue to violet
|
||||
if 70 <= band < 200: # blue to violet
|
||||
red = map_range(band, 70, 200, 0.0, 0.6) ** gamma
|
||||
grn = 0.0
|
||||
blu = 1.0**gamma
|
||||
# if band >= 200 and band < 300: # violet to red
|
||||
if 200 <= band < 300: # violet to red
|
||||
red = map_range(band, 200, 300, 0.6, 1.0) ** gamma
|
||||
grn = 0.0
|
||||
blu = map_range(band, 200, 300, 1.0, 0.0) ** gamma
|
||||
# if band >= 300 and band < 400: # red to orange
|
||||
if 300 <= band < 400: # red to orange
|
||||
red = 1.0**gamma
|
||||
grn = map_range(band, 300, 400, 0.0, 0.5) ** gamma
|
||||
blu = 0.0
|
||||
# if band >= 400 and band < 500: # orange to yellow
|
||||
if 400 <= band < 500: # orange to yellow
|
||||
red = 1.0**gamma
|
||||
grn = map_range(band, 400, 500, 0.5, 1.0) ** gamma
|
||||
|
|
|
|||
|
|
@ -48,22 +48,18 @@ def index_to_rgb(index=0, gamma=0.5):
|
|||
red = ((-1.0 * (wavelength - 440) / (440 - 380)) * intensity) ** gamma
|
||||
grn = 0.0
|
||||
blu = (1.0 * intensity) ** gamma
|
||||
# if wavelength >= 440 and wavelength < 490:
|
||||
if 440 <= wavelength < 490:
|
||||
red = 0.0
|
||||
grn = (1.0 * (wavelength - 440) / (490 - 440)) ** gamma
|
||||
blu = 1.0**gamma
|
||||
# if wavelength >= 490 and wavelength < 510:
|
||||
if 490 <= wavelength < 510:
|
||||
red = 0.0
|
||||
grn = 1.0**gamma
|
||||
blu = (-1.0 * (wavelength - 510) / (510 - 490)) ** gamma
|
||||
# if wavelength >= 510 and wavelength < 580:
|
||||
if 510 <= wavelength < 580:
|
||||
red = (1.0 * (wavelength - 510) / (580 - 510)) ** gamma
|
||||
grn = 1.0**gamma
|
||||
blu = 0.0
|
||||
# if wavelength >= 580 and wavelength < 645:
|
||||
if 580 <= wavelength < 645:
|
||||
red = 1.0**gamma
|
||||
grn = (-1.0 * (wavelength - 645) / (645 - 580)) ** gamma
|
||||
|
|
|
|||
Loading…
Reference in a new issue