toHex function to convert decimal bytes to hexGradient.toString() options from an array to a rest parameterColor.from() (use Color.hex() instead)Gradient.toString()hue, saturation, and lightness properties for Color classColor.hsl(...) functionColor.from(hex) renamed to Color.hex(hex) for clarity (from is deprecated)Color.toString() now returns the hexadecimal code by default, but can be reconfigured
Color.rgb(...) function, which is an alias of new Color(...)eslint styling rules.eslint standards.Gradient.toSVG() function which creates a <linearGradient> element to be appended onto <defs>, since SVG elements cannot use the CSS linear gradient styling methodstoString() function:
package.json filetsc version on npm testexray as a development dependencyexray frameworksmath dependencybuild and types scriptssmath dependency to 1.1.7smath dependency to 1.1.6smath dependency to 1.1.2package.jsonColor.getContrastingColor()Gradient.getColor() works
new GradientColor and Gradientpackage.jsontypescript, typedoc)smath@1.1.1 as dependency