]> git.r.bdr.sh - rbdr/tomato-sauce/blame - lib/renderers/fake_color.js
Merge branch 'feature/the-actual-tomato-sauce' into develop
[rbdr/tomato-sauce] / lib / renderers / fake_color.js
CommitLineData
c7b4bd19
BB
1'use strict';
2
3// Sends malformed ANSI 24-bit color strings
4const FakeColor = function (red, blue, green) {
5 return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`;
6};
7
8module.exports = FakeColor;