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 disliked.
Disliked is defined as a dark yellow-green that is not neutral. Specifically, a color with:
- Hue between 90 and 111 degrees
- Chroma greater than 16
- Tone less than 65
Parameters:
- hct: A color in HCT format to be evaluated
Returns:
- true if the color is considered disliked, false otherwise
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.