]> git.r.bdr.sh - rbdr/tomato-sauce/blame_incremental - lib/renderers/fake_color.js
Use variable for interval
[rbdr/tomato-sauce] / lib / renderers / fake_color.js
... / ...
CommitLineData
1'use strict';
2
3/**
4 * Returns a malformed 24-bit ansi color
5 *
6 * @function FakeColorRenderer
7 * @implements IRenderer
8 */
9module.exports = function (red, blue, green) {
10
11 return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`;
12};