dislike

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixIfDisliked

func FixIfDisliked(hct color.Hct) color.Hct

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

func IsDisliked(hct color.Hct) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL