- Improve
getBlendXXX
methods overloads to make it possible to omit optional parameters - Improve
getMixXXX
methods overloads to make it possible to omit optional parameters - Improve
getHarmony
method overloads to make it possible to omit optional parameters - Improve types for
Mix
andHarmony
making it possible to send also strings - Make optional the
shades
andtints
parameters of thegetShades
andgetTints
methods respectively - Fix a bug in the
getBlendXXX
andtoXXX
methods which were ignoring thedecimals
sent and always usingMAX_DECIMALS
- Fix
CIELabObject
not being exported with the library
- [BREAKING CHANGE]: Properties of the HEX, HEXA, RGB, RGBA, HSL, HSLA, CMYK and CMYKA objects are now capitalized letters to make them more consistent with the rest of the properties and to add support for
Lab
colors with alpha (L a b A
) - Added support for CIE L*a*b colors conversion
- Specify types for the ESM bundle
- Provide types specifically for the ESM bundle
- Avoid double rounding in CSS blending static methods
- [BREAKING CHANGE]: Complete refactoring of the library, now the default CSS output is in CSS Level 4, if one wants CSS Level 3 it should be required through a configuration parameter. The new API can be consulted in the README.
- [BREAKING CHANGE]: Complete refactoring of the library, if no specified all colors will be calculated with 6 decimals in its values
- Implemented a way to control de decimals for the color conversion
- Fixed rounded values of hexadecimal colors
- Fixed RYB to RGB conversion (thanks to @jagracar)
- Support for CSS Colors 4 inputs
- Fixed a bug that didn‘t allow leading zeros
- Removed comments from the bundle
- Updated the Travis URL in the README
- Added support for color keywords
- Created a EMS version of the package allowing backward compatibility for CJS
- Replaced webpack by rollup to build the packages
- Small improvements to the additive color mix feature
- Implemented two static methods to get shades and tints of a color
- Fix a bug that was returning HEXA values without alpha if the alpha value was 0
- Support for subtractive color harmonies generation
- Fix the RGB harmonies
- Fix final alpha value of color mixes with alpha
- Support for subtractive mixing of colors
- Implemented static methods to mix colors in additive mode
- getMixHEX
- getMixHEXA
- getMixRGB
- getMixRGBA
- getMixHSL
- getMixHSLA
- Fix a bug in the getHarmony method when the input is a hex object without alpha
- Refactor the code to remove unused lines
- Improved the test coverage
- Updated packages, solved vulnerabilities
- Improve the definition types of the method getHarmony
- Fix a bug in the getHarmony method that was returning RGBObject colors when a HEXObject color was provided
- Fix type definitions bugs
- Increase coverage with more tests
- Fix a bug to normalize the hue of HSL colors for negative values
- Normalize the hue of the HSL inputs
- Round the values of the blends
- Created a new static method to build color harmonies
- Renamed the blend static methods to make them more descriptive
- Added static methods to return an array of blends between two colors
- Resolve eslint-utils vulnerability forcing the version to be equal or greater than 1.4.1
- Use SCSS files for the styles of the demo page
- Created mobile styles for better rendering of the demo page in mobile devices
- Added the possibility to instantiate the class using any of the inputs
- Added 11 public chainable methods and 25 public readonly properties
- Updated some demo examples to use the new class, methods, and properties
- Changed the CSS CMYK output from
device-cmyk
tocmyk
- Solved a bug with webpack and the clean-webpack-plugin package
- Fixed a bug with RGBA and HSLA CSS output
- Created a script to run eslint on source files
- Renamed the library to ColorTranslator
- Renamed the distribution files
- Converted the main object to a class with static methods. This will allow to instantiate the class in the future
- Removed CMYK colors from the test because they are not used
- Fixed some bugs and formatting issues
- Made it compatible with node
- Created unit tests
- Created a demo page
- Renamed the library to colortranslator
- Rewriten the library in TypeScript
- Fixed some bugs
- Created ColorConverter