Differences between tinycolor and tinycolor2
masterIf you are migrating from tinycolor2, note the following breaking changes:
- The library is now written in TypeScript/ES2015 and requires Node >= 8.
- It is tree-shakeable.
tinycoloris now exported as a class namedTinyColor.- The default export has been removed; use
import { TinyColor } from '@ctrl/tinycolor'. readabilityandfromRatiohave moved out of theTinyColorclass.randomhas been renamed tolegacyRandomand moved out of the class.toFilterhas been renamed totoMsFilterand moved out of the class.mixandequalsnow use the currentTinyColorobject as the first parameter.isValidandformatare now properties instead of functions.