]> git.r.bdr.sh - rbdr/tomato-sauce/blame - lib/renderers/fake_color.js
Update code and dpendencies
[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
a0666be3 11 return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`;
c7b4bd19 12};