ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
scripts.themegen Namespace Reference

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 ###.
 

Function Documentation

◆ get_hex()

scripts.themegen.get_hex ( line)

given a line that starts with a hex color return the color and the rest of the line

◆ get_hsl()

scripts.themegen.get_hsl ( line)

◆ get_rgba()

scripts.themegen.get_rgba ( line)

◆ hsv_to_hsl()

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]

◆ make_theme()

scripts.themegen.make_theme ( name,
color )

◆ process_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

Variable Documentation

◆ colors

list scripts.themegen.colors = ["#e38914", "#9f1fd1", "#0a4ff0", "#03c2fc", "#fcba03", "#eb17bd", "#114ad1"]

◆ names

list scripts.themegen.names = ["orange", "purple", "darkblue", "teal", "yellow", "pink", "blue"]

CONFIGURABLE ###.