Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.129.71.225
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
color-string /
Delete
Unzip
Name
Size
Permission
Date
Action
test
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
CHANGELOG.md
386
B
-rw-r--r--
2015-02-19 07:21
LICENSE
1.06
KB
-rw-r--r--
2015-02-19 06:58
README.md
1.24
KB
-rw-r--r--
2015-02-19 06:58
color-string.js
5.69
KB
-rw-r--r--
2015-02-19 07:06
package.json
1.51
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
# color-string color-string is a library for parsing and generating CSS color strings. #### parsing: ```javascript colorString.getRgb("#FFF") // [255, 255, 255] colorString.getRgb("blue") // [0, 0, 255] colorString.getRgba("rgba(200, 60, 60, 0.3)") // [200, 60, 60, 0.3] colorString.getRgba("rgb(200, 200, 200)") // [200, 200, 200, 1] colorString.getHsl("hsl(360, 100%, 50%)") // [360, 100, 50] colorString.getHsla("hsla(360, 60%, 50%, 0.4)") // [360, 60, 50, 0.4] colorString.getAlpha("rgba(200, 0, 12, 0.6)") // 0.6 ``` #### generating: ```javascript colorString.hexString([255, 255, 255]) // "#FFFFFF" colorString.rgbString([255, 255, 255]) // "rgb(255, 255, 255)" colorString.rgbString([0, 0, 255, 0.4]) // "rgba(0, 0, 255, 0.4)" colorString.rgbString([0, 0, 255], 0.4) // "rgba(0, 0, 255, 0.4)" colorString.percentString([0, 0, 255]) // "rgb(0%, 0%, 100%)" colorString.keyword([255, 255, 0]) // "yellow" colorString.hslString([360, 100, 100]) // "hsl(360, 100%, 100%)" ``` # Install ### node For [node](http://nodejs.org) with [npm](http://npmjs.org): npm install color-string ### browser Download the latest [color-string.js](https://github.com/harthur/color-string/tree/gh-pages). The `colorString` object is exported.