bash:colors:24-bit_rgb_colors
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bash:colors:24-bit_rgb_colors [2021/01/09 12:58] – created peter | bash:colors:24-bit_rgb_colors [2021/01/09 13:35] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASH - Colors - 24-bit RGB Colors ====== | ====== BASH - Colors - 24-bit RGB Colors ====== | ||
+ | |||
+ | 16777216 Colors. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Format ===== | ||
+ | |||
+ | <code bash> | ||
+ | ESC[ 38; | ||
+ | ESC[ 48; | ||
+ | </ | ||
+ | |||
+ | where: | ||
+ | |||
+ | * **R** is RED; values 0 to 255. | ||
+ | * **G** is GREEN; values 0 to 255. | ||
+ | * **B** is BLUE; values 0 to 255. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== RED Example ===== | ||
+ | |||
+ | <code bash> | ||
+ | echo -e " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== ANSI Rainbow ===== | ||
+ | |||
+ | <code bash> | ||
+ | for (( r = 0; r < 255; r++ )); do for (( g = 0; g < 255; g++ )); do for (( b = 0; b < 255; b++ )); do echo -e " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
bash/colors/24-bit_rgb_colors.1610197136.txt.gz · Last modified: 2021/01/09 12:58 by peter