@palett/presets
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -113,3 +113,3 @@ 'use strict'; | ||
const hsl = (_min = min, convert.hexToHsl(_min)); | ||
const max = (_toner = tonerHsl.toner(hsl.slice(), rand.randIntBetw(-12, 12), rand.randIntBetw(-5, 10), rand.randIntBetw(6, 18)), convert.hslToHex(_toner)); | ||
const max = (_toner = tonerHsl.toner(hsl.slice(), rand.randBetw(-12, 12), rand.randBetw(-5, 10), rand.randBetw(6, 18)), convert.hslToHex(_toner)); | ||
const na = (_ref = [reverseHue(hsl[0]), constraint(hsl[1] - 32, 5, 90), constraint(hsl[2] + 24, 40, 96)], convert.hslToHex(_ref)); | ||
@@ -116,0 +116,0 @@ return { |
import { Palett } from '@palett/cards'; | ||
import { randIntBetw } from '@aryth/rand'; | ||
import { randBetw } from '@aryth/rand'; | ||
import { hexToHsl, hslToHex, hslToRgb } from '@palett/convert'; | ||
@@ -109,3 +109,3 @@ import { toner } from '@palett/toner-hsl'; | ||
const hsl = (_min = min, hexToHsl(_min)); | ||
const max = (_toner = toner(hsl.slice(), randIntBetw(-12, 12), randIntBetw(-5, 10), randIntBetw(6, 18)), hslToHex(_toner)); | ||
const max = (_toner = toner(hsl.slice(), randBetw(-12, 12), randBetw(-5, 10), randBetw(6, 18)), hslToHex(_toner)); | ||
const na = (_ref = [reverseHue(hsl[0]), constraint(hsl[1] - 32, 5, 90), constraint(hsl[2] + 24, 40, 96)], hslToHex(_ref)); | ||
@@ -112,0 +112,0 @@ return { |
{ | ||
"name": "@palett/presets", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A color converter", | ||
@@ -20,5 +20,5 @@ "main": "dist/index.cjs.js", | ||
"@ject/oneself": "^0.0.6", | ||
"@palett/cards": "^0.5.0", | ||
"@palett/convert": "^0.5.0", | ||
"@palett/toner-hsl": "^0.5.0" | ||
"@palett/cards": "^0.5.1", | ||
"@palett/convert": "^0.5.1", | ||
"@palett/toner-hsl": "^0.5.1" | ||
}, | ||
@@ -46,3 +46,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/palett/presets#readme", | ||
"gitHead": "97289417a2ca5a1543d5cc7a7de9e34c6942184e" | ||
"gitHead": "535b834cdf941adb4711877bdb06904339c59929" | ||
} |
15223
Updated@palett/cards@^0.5.1
Updated@palett/convert@^0.5.1
Updated@palett/toner-hsl@^0.5.1