system.kanoa.utilities.getContrastingColor
Description
#Input a string of RGB hex digits with hash sign to compute a complementary contrasting color such as for fonts against a background (kanoaCore).Syntax
getContrastingColor(hexColor)- hexColor (String) - RGB hex digits with a hash sign (e.g., #FF0000).
- hexColor (String) - The contrasting color.
Code Example
# Example Usage:
contrasting_color = system.kanoa.utilities.getContrastingColor('#FF0000')