Skip to content

Commit b409cc5

Browse files
author
邓文
committed
update
1 parent c4ea6eb commit b409cc5

File tree

3 files changed

+2425
-1862
lines changed

3 files changed

+2425
-1862
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,40 @@ Desc | Type
180180
HEX色值 | string
181181

182182

183+
### \# isDeepColorByHsl - 基于 HSL 判断是否深色
184+
```javascript
185+
import { isDeepColorByHsl } from 'image-color-utils'
186+
187+
const isDeep = isDeepColorByHsl(hsl)
188+
```
189+
##### Arguments
190+
Name | Desc | Type | Default | required
191+
-------- | -------- | -------- | -------- | -----
192+
hsl | HSL色值 | number[] | - | true
193+
194+
##### Returns
195+
Desc | Type
196+
-------- | --------
197+
isDeep | boolean
198+
199+
200+
### \# isDeepColorByHsv - 基于 HSV 判断是否深色
201+
```javascript
202+
import { isDeepColorByHsv } from 'image-color-utils'
203+
204+
const isDeep = isDeepColorByHsv(hsv)
205+
```
206+
##### Arguments
207+
Name | Desc | Type | Default | required
208+
-------- | -------- | -------- | -------- | -----
209+
hsv | HSV色值 | number[] | - | true
210+
211+
##### Returns
212+
Desc | Type
213+
-------- | --------
214+
isDeep | boolean
215+
216+
183217
## Attribute
184218
```javascript
185219
import { ImageColorUtils } from 'image-color-utils'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
"@typescript-eslint/parser": "^4.17.0",
4242
"babel-plugin-tester": "^10.1.0",
4343
"eslint": "^7.22.0",
44-
"rollup": "^2.41.3",
44+
"rollup": "2.41.3",
4545
"rollup-plugin-commonjs": "^10.1.0",
4646
"rollup-plugin-polyfill": "^3.0.0",
4747
"rollup-plugin-serve": "^1.1.0",
4848
"rollup-plugin-typescript2": "^0.30.0",
49-
"tslib": "^2.1.0",
49+
"tslib": "2.1.0",
5050
"tslint": "^6.1.3",
5151
"typescript": "^4.2.3"
5252
},

0 commit comments

Comments
 (0)