]> git.r.bdr.sh - rbdr/tomato-sauce/blob - lib/renderers/fake_color.js
Updates the README with handy info
[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;