]> git.r.bdr.sh - rbdr/tomato-sauce/blame - lib/renderers/fake_color.js
Use correct var for let
[rbdr/tomato-sauce] / lib / renderers / fake_color.js
CommitLineData
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 */
9module.exports = function (red, blue, green) {
10
c7b4bd19
BB
11 return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`;
12};