schrodinger.application.msv.gui.color_ramp module¶
Color ramps for use in MSV color schemes.
- class schrodinger.application.msv.gui.color_ramp.NamedColorRamp(name, *args, **kwargs)[source]¶
Bases:
schrodinger.structutils.color.ColorRamp
A color ramp with a name. This name is used to refer to the color ramp in both the GUI and in JSON files.
- __init__(name, *args, **kwargs)[source]¶
See parent class for additional method documentation.
- Parameters
name (str) – The name of the color ramp.
- property name¶
- getRGB(value)¶
Determine the color that corresponds to the specified value
- Parameters
value (int or float) – The value to calculate the color for
- Returns
The color corresponding to the specified value, where the color is a represented by a list of (red, green, blue) integers in the 0-255 range.
- Return type
list
- class schrodinger.application.msv.gui.color_ramp.NamedRainbowColorRamp(name, *args, **kwargs)[source]¶
Bases:
schrodinger.application.msv.gui.color_ramp.NamedColorRamp
,schrodinger.structutils.color.RainbowColorRamp
- COLORS = ('red1', 'user10', 'user12', 'user14', 'user15', 'user16', 'user17', 'user18', 'user19', 'user20', 'user21', 'green', 'user53', 'user54', 'user55', 'user56', 'user57', 'user58', 'user59', 'user60', 'user26', 'user28', 'user30', 'user32', 'user61', 'user62', 'purple')¶
- __init__(name, *args, **kwargs)¶
See parent class for additional method documentation.
- Parameters
name (str) – The name of the color ramp.
- getRGB(value)¶
Determine the color that corresponds to the specified value
- Parameters
value (int or float) – The value to calculate the color for
- Returns
The color corresponding to the specified value, where the color is a represented by a list of (red, green, blue) integers in the 0-255 range.
- Return type
list
- property name¶