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