css-color-parser-h 3.0.7 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of css-color-parser-h might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/example.html +17 -1
  2. package/package.json +1 -1
package/example.html CHANGED
@@ -30,8 +30,24 @@
30
30
  console.log(cssColorParser.toRGBA())
31
31
  cssColorParser.subtract('blue', false)
32
32
  console.log(cssColorParser.toRGBA())
33
- const lerpedColor = Parser.CssColorParserPlus.lerp({0: "rgba(255, 255, 0, 1)",0.5: "rgba(0, 255, 0, 1)",1: "rgba(255, 0, 0, 1)"}, 0.8)
33
+ const lerpedColor = Parser.CssColorParserPlus.lerp({
34
+ 0: Parser.CssColorParserPlus.parseColor('rgba(255, 255, 0, 1)'),
35
+ 0.5: Parser.CssColorParserPlus.parseColor('rgba(0, 255, 0, 1)'),
36
+ 1: Parser.CssColorParserPlus.parseColor('rgba(255, 0, 0, 1)')
37
+ }, 0.4)
34
38
  console.log(lerpedColor)
39
+ const lerpedColor2 = Parser.CssColorParserPlus.lerp({
40
+ 0: Parser.CssColorParserPlus.parseColor('rgba(255, 255, 0, 1)'),
41
+ 0.5: Parser.CssColorParserPlus.parseColor('rgba(0, 255, 0, 1)'),
42
+ 1: Parser.CssColorParserPlus.parseColor('rgba(255, 0, 0, 1)')
43
+ }, 0.4)
44
+ console.log(lerpedColor2)
45
+ const lerpedColor3 = Parser.CssColorParserPlus.lerp({
46
+ 0: Parser.CssColorParserPlus.parseColor('rgba(255, 255, 0, 1)'),
47
+ 0.5: Parser.CssColorParserPlus.parseColor('rgba(0, 255, 0, 1)'),
48
+ 1: Parser.CssColorParserPlus.parseColor('rgba(255, 0, 0, 1)')
49
+ }, 0.4)
50
+ console.log(lerpedColor3)
35
51
  </script>
36
52
  </body>
37
53
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-color-parser-h",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "A tool for parsing css color",
5
5
  "main": "lib/css-color-parser-h.cjs.js",
6
6
  "module": "lib/css-color-parser-h.esm.js",