Comparing version 3.0.0 to 3.1.0
@@ -42,3 +42,3 @@ 'use strict'; | ||
if (!obj) { | ||
if (typeof obj === 'undefined') { | ||
this.model = 'rgb'; | ||
@@ -45,0 +45,0 @@ this.color = [0, 0, 0]; |
{ | ||
"name": "color", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Color conversion and manipulation with CSS string support", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -58,2 +58,7 @@ # color [![Build Status](https://travis-ci.org/Qix-/color.svg?branch=master)](https://travis-ci.org/Qix-/color) | ||
```js | ||
color.hex() // 0xffffff | ||
``` | ||
Get the hex value. | ||
```js | ||
color.red() // 255 | ||
@@ -60,0 +65,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16202
120