TinyColor icon indicating copy to clipboard operation
TinyColor copied to clipboard

Feature request: isWarmColor, isCoolColor, isDarker, isLighter, isHarmonious

Open ex-tag opened this issue 7 years ago • 2 comments

Warm colors have more red, and cool colors have more blue. Please add isWarmColor() and isCoolColor() methods.

To check RGB color, code might look like...

red = 0
blue = 0

if (red > blue) {
  isWarmColor = true
  isCoolColor = false
}
else if (red < blue) {
  isWarmColor = false
  isCoolColor = true
}
else {
  isWarmColor = false
  isCoolColor = false
}

ex-tag avatar Nov 26 '18 00:11 ex-tag

isWarm - checks if color is Warm color isCool - checks if color is Cool color isWarmer - checks if one color is warmer than another color isCooler - checks if one color is cooler than another color isLighter - checks if a color is lighter than another color isDarker - checks if a color is darker than another color isHarmonious - checks if two colors are harmonious

ex-tag avatar Dec 09 '18 22:12 ex-tag

Isn't there any warmer/cooler manipulators?

hendrul avatar Oct 02 '19 15:10 hendrul