'use strict'; // Returns an ANSI Code for True Color, see: // https://en.wikipedia.org/wiki/ANSI_escape_code#Colors // and look for 24-bit colors. Only looks good in supported terminals, // otherwise looks like FakeColor. const TrueColor = function (red, blue, green) { return `\x1B[48;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`; }; module.exports = TrueColor;