Color conversion script.

This commit is contained in:
Artem Sapegin
2012-12-20 16:48:10 +04:00
parent ac3df1edeb
commit 765275291c
4 changed files with 127 additions and 1 deletions

View File

@ -63,7 +63,7 @@ Remove screenshots from desktop.
Show/hide hidden files in Finder.
## Text
## Files
### dos2unix <filepath>
@ -73,6 +73,9 @@ Convert file to Unix line endings.
Find files with Windows line endings (and convert them to Unix when `--force` key given).
## Text, HTML, CSS
### escape <characters>
Escape UTF-8 characters into their 3-byte format: `£` → `\xC2\xA3`.
@ -81,6 +84,14 @@ Escape UTF-8 characters into their 3-byte format: `£` → `\xC2\xA3`.
Get a characters Unicode code point: `£` → `\x00A3`.
### hex2hsl <[#]dead00> [alpha]
Convert #hex color to HSL/HSLA. `#dead00``hsl(47,99%,44%)`.
### hex2hsl <[#]dead00> [alpha]
Convert #hex color to RGB/RGBA. `#dead00``rgb(222,173,0)`.
## Network