* Generates the ANSI TrueColor (24-bit) escape sequence for a foreground color. * @param {number} r Red component (0-255) * @param {number} g Green component (0-255) * @param {number} b Blue component (0-255) * @returns {string} The ANSI escape sequence
(r, g, b)
| 232 | * @returns {string} The ANSI escape sequence |
| 233 | */ |
| 234 | function rgbToAnsi24Bit(r, g, b) { |
| 235 | return `38;2;${r};${g};${b}`; |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * @param {string | string[]} format |
no outgoing calls
no test coverage detected
searching dependent graphs…