> pictools > doc > hex2rgb
> pictools > doc > hex2rgb
Pictools: Shell Script Tools
V3.3 (445)
hex2rgb
/pictools/hex2rgb
Convert a hex color to rgb() syntax
usage: hex2rgb [#]xxx[xxx]
The x's on the command line must be hexadecimal digits. The printed output is 'rgb(rr, gg, bb)' where rr, gg, and bb are the decimal equivalents of the first, second, and third pairs of digits. If only three digits are supplied, each is effectively duplicated (multiplied by 0x11) to have a six digit value.
 
Copyright © 2023 ZweiBieren, All rights reserved. Feb 5, 2023 17:05 GMT Page maintained by ZweiBieren