|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
Functions | |
| get_hex (line) | |
| given a line that starts with a hex color return the color and the rest of the line | |
| get_hsl (line) | |
| get_rgba (line) | |
| hsv_to_hsl (hsv) | |
| python hsv is given by the scale hue [0, 1), sat [0, 1], val [0, 255] | |
| make_theme (name, color) | |
| process_color (line, target_hsl) | |
| given the string line which may contain a color literal, such as #FFFFFF, replace the first occurence with the color transformed towards the target hue | |
Variables | |
| list | colors = ["#e38914", "#9f1fd1", "#0a4ff0", "#03c2fc", "#fcba03", "#eb17bd", "#114ad1"] |
| list | names = ["orange", "purple", "darkblue", "teal", "yellow", "pink", "blue"] |
| CONFIGURABLE ###. | |
| scripts.themegen.get_hex | ( | line | ) |
given a line that starts with a hex color return the color and the rest of the line
| scripts.themegen.get_hsl | ( | line | ) |
| scripts.themegen.get_rgba | ( | line | ) |
| scripts.themegen.hsv_to_hsl | ( | hsv | ) |
python hsv is given by the scale hue [0, 1), sat [0, 1], val [0, 255]
whereas css hsl is given by the scale hue [0,360), sat [0, 100], lum [0, 100]
| scripts.themegen.make_theme | ( | name, | |
| color ) |
| scripts.themegen.process_color | ( | line, | |
| target_hsl ) |
given the string line which may contain a color literal, such as #FFFFFF, replace the first occurence with the color transformed towards the target hue
| list scripts.themegen.colors = ["#e38914", "#9f1fd1", "#0a4ff0", "#03c2fc", "#fcba03", "#eb17bd", "#114ad1"] |
| list scripts.themegen.names = ["orange", "purple", "darkblue", "teal", "yellow", "pink", "blue"] |
CONFIGURABLE ###.