Designed for 24bit capable colour terminals, this will show on a single line the following for each colour given
- the R/G/B values relative to each other linearly along the X axis
- The R/G/B colours as seperate channels
- A colour swatch
- A swatch (anmd 32bit RGB code) of the greyscale equivalent
- Greyscale via linear approximation method: https://e2eml.school/convert_rgb_to_grayscale
Valid options are:
- "-h" - will show the help
- abc - any three character hex string will get shown as described above
- "any other string" - will be simply echoed literally.
- eg
rgbshow.sh "Hello world" 817 a35 c66 e94 ed0 9d5 4d8 2cb 0bc 09c 36b 639
- eg
(example rainbow taken from The 12-bit rainbow palette)