@hydroperx/color
Advanced tools
+0
-4
@@ -64,6 +64,2 @@ import Color$ from "color"; | ||
| lightness(val: number): Color; | ||
| whiteness(): number; | ||
| whiteness(val: number): Color; | ||
| blackness(): number; | ||
| blackness(val: number): Color; | ||
| cyan(): number; | ||
@@ -70,0 +66,0 @@ cyan(val: number): Color; |
+12
-24
@@ -45,3 +45,3 @@ import Color$ from "color"; | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -52,3 +52,3 @@ Color.prototype.red = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -59,3 +59,3 @@ Color.prototype.green = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -66,3 +66,3 @@ Color.prototype.blue = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -73,3 +73,3 @@ Color.prototype.hue = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -80,3 +80,3 @@ Color.prototype.saturationl = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -87,3 +87,3 @@ Color.prototype.saturationv = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -94,16 +94,4 @@ Color.prototype.lightness = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
| Color.prototype.whiteness = function (val = undefined) { | ||
| const r = this._color.whiteness(val); | ||
| if (typeof val === "undefined") | ||
| return r; | ||
| return this; | ||
| }; | ||
| Color.prototype.blackness = function (val = undefined) { | ||
| const r = this._color.blackness(val); | ||
| if (typeof val === "undefined") | ||
| return r; | ||
| return this; | ||
| }; | ||
| Color.prototype.cyan = function (val = undefined) { | ||
@@ -113,3 +101,3 @@ const r = this._color.cyan(val); | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -120,3 +108,3 @@ Color.prototype.magenta = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -127,3 +115,3 @@ Color.prototype.yellow = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -134,3 +122,3 @@ Color.prototype.black = function (val = undefined) { | ||
| return r; | ||
| return this; | ||
| return Color(r); | ||
| }; | ||
@@ -137,0 +125,0 @@ Color.prototype.luminosity = function () { |
+1
-1
| { | ||
| "name": "@hydroperx/color", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
23801
-1.73%364
-4.21%