dislike

package
v0.0.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 11, 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 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.

Jump to

Keyboard shortcuts

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