Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixIfDisliked ¶
FixIfDisliked lightens a color if it is considered disliked. If the color is identified as disliked, this function creates a new color with the same hue and chroma but with a tone of 70.0, making it more visually pleasant.
Parameters:
- hct: A color in HCT format to be evaluated and potentially modified
Returns a new color if the original is disliked, or the original color if it is acceptable
func IsDisliked ¶
IsDisliked determines if a color is considered visually unpleasant. Disliked colors are dark yellow-greens with sufficient saturation.
Params:
- hct: Color in HCT format to evaluate.
Returns bool - true if color meets disliked criteria, false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.