ConfigVariableColor
-
class ConfigVariableColor
Bases:
ConfigVariableThis is a convenience class to specialize
ConfigVariableas a set of floating-point types representing a color value.It interprets the color differently depending on how many words were specified: if only one, it is interpreted as a shade of gray with alpha 1. If two values were specified, a grayscale and alpha pair. If three, a set of R, G, B values with alpha 1, and if four, a complete RGBA color.
This isn’t defined in dtool because it relies on the
LColorclass, which is defined in linmath.Inheritance diagram
-
explicit ConfigVariableColor(std::string_view name)
-
explicit ConfigVariableColor(std::string_view name, LColor const &default_value, std::string_view description = "", int flags = 0)
-
explicit ConfigVariableColor(std::string_view name, std::string_view default_value, std::string_view description = "", int flags = 0)
-
ConfigVariableColor(ConfigVariableColor const&) = default
-
explicit ConfigVariableColor(std::string_view name)
