aboutsummaryrefslogtreecommitdiff
path: root/lib/renderers/fake_color.js
blob: d0482dc18543a66ec3e93268e6fbfc11180d3027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

/**
 * Returns a malformed 24-bit ansi color
 *
 * @function FakeColorRenderer
 * @implements IRenderer
 */
module.exports = function (red, blue, green) {

    return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`;
};