]>
Commit | Line | Data |
---|---|---|
c7b4bd19 BB |
1 | 'use strict'; |
2 | ||
fd38d409 RBR |
3 | /** |
4 | * Returns a malformed 24-bit ansi color | |
5 | * | |
6 | * @function FakeColorRenderer | |
7 | * @implements IRenderer | |
8 | */ | |
9 | module.exports = function (red, blue, green) { | |
10 | ||
a0666be3 | 11 | return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`; |
c7b4bd19 | 12 | }; |