color¶
Functions
|
Generate new color which oppositely by exist colors. |
|
|
|
Convert HEX RGB string to integer RGB format. |
|
Generate RGB color with fixed saturation and lightness. |
|
Convert integer color format to HEX string. |
|
Generates ValueError if value not between 0 and 255. |
Description
Color utilities.
- generate_rgb(exist_colors)[source]¶
Generate new color which oppositely by exist colors.
-
random_rgb(fix_satlight=
True)[source]¶ Generate RGB color with fixed saturation and lightness.
- Returns:
RGB integer values
- Return type:
List[int, int, int]- Usage Example:
import supervisely as sly color = sly.color.random_rgb() print(color) # Output: [138, 15, 123]