ConfigVariableColor

from panda3d.core import ConfigVariableColor
class ConfigVariableColor

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as 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 LColor class, which is defined in linmath.

Inheritance diagram

Inheritance diagram of ConfigVariableColor

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const ConfigVariableColor self, const LVecBase4f value)

getDefaultValue()

C++ Interface: get_default_value(ConfigVariableColor self)

/**
  • Returns the variable’s default value.

*/

getValue()

C++ Interface: get_value(ConfigVariableColor self)

/**
  • Returns the variable’s value.

*/

get_default_value()

C++ Interface: get_default_value(ConfigVariableColor self)

/**
  • Returns the variable’s default value.

*/

get_value()

C++ Interface: get_value(ConfigVariableColor self)

/**
  • Returns the variable’s value.

*/

operatorTypecast()

C++ Interface: operator_typecast(ConfigVariableColor self)

operator_typecast()

C++ Interface: operator_typecast(ConfigVariableColor self)

setValue()

C++ Interface: set_value(const ConfigVariableColor self, const LVecBase4f value)

/**
  • Reassigns the variable’s local value.

*/

set_value()

C++ Interface: set_value(const ConfigVariableColor self, const LVecBase4f value)

/**
  • Reassigns the variable’s local value.

*/