- cast_color_to_rgba_string
cast_color_to_rgba_string
-
bapsf_motion.gui.cast_color_to_rgba_string(color: QColor | str) → str
Cast color to an RGBA string representation
'rgba(r, g, b, a)'
- Parameters:
color (Union[QColor, str]) – color can be an instance of QColor or a
string representation of hex, rgb, or rgba color code. It can
also be a string representation of a QColor,
e.g. 'QColor(r, g, b)'.