Package dtk :: Package ui :: Module theme :: Class DynamicAlphaColor

Class DynamicAlphaColor

source code


Dynamic alpha color.

Instance Methods
 
__init__(self, color_info)
Initialize DynamicAlphaColor class.
source code
 
update(self, color_info)
Update color_info with given value.
source code
 
get_color_info(self)
Get color info.
source code
 
get_color(self)
Get color.
source code
 
get_alpha(self)
Get alpha value.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, color_info)
(Constructor)

source code 

Initialize DynamicAlphaColor class.

Parameters:
  • color_info - Color information, format as (hex_color, alpha)
Overrides: object.__init__

get_color_info(self)

source code 

Get color info.

Returns:
Return color information, format as (hex_color, alpha)

get_color(self)

source code 

Get color.

Returns:
Return hex color string.

get_alpha(self)

source code 

Get alpha value.

Returns:
Return alpha value.