pyvista.Color.convert_color_channel# static Color.convert_color_channel(val: float | floating[Any] | str) → int[source]# Convert the given color channel value to the integer representation. Parameters: valint | float | strColor channel value to convert. Supported input values are a hex string of length 2 ('00' to 'ff') with an optional prefix ('#' or '0x'), a float (0.0 to 1.0) or an integer (0 to 255). Returns: intColor channel value in the integer representation (values between 0 and 255).