UNPKG
colorizr
Version:
latest (5.0.1)
5.0.1
5.0.0
4.0.1
4.0.0
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
3.0.0-1
3.0.0-0
2.1.1
2.1.0
2.0.0
2.0.0-2
2.0.0-1
2.0.0-0
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Manipulate colors like a boss
github.com/gilbarbara/colorizr
gilbarbara/colorizr
colorizr
/
src
/
lighten.ts
11 lines
(8 loc)
•
262 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
updater
from
'~/modules/updater'
;
import
{
Amount
,
ColorType
}
from
'~/types'
;
/** * Increase color lightness */
export
default
function
lighten
(
input: string, amount: Amount, format?: ColorType
) {
return
updater
(
'l'
,
'+'
, format)(input, amount); }