X-Git-Url: https://git.r.bdr.sh/rbdr/tomato-sauce/blobdiff_plain/fd38d4096e65ba5afba8ed1ddc75ed1814ca8c16..a0666be3ab58ed83ad6d622cfe2b8293c40dffbb:/lib/renderers/ansi.js diff --git a/lib/renderers/ansi.js b/lib/renderers/ansi.js index b3a461d..b15be7c 100644 --- a/lib/renderers/ansi.js +++ b/lib/renderers/ansi.js @@ -9,8 +9,8 @@ */ module.exports = function (red, blue, green) { - const colorOffset = Math.round((red + blue + green) * 7 / (255 * 3)); - const colorNumber = 40 + colorOffset; + const colorOffset = Math.round((red + blue + green) * 7 / (255 * 3)); + const colorNumber = 40 + colorOffset; - return `\x1B[${colorNumber}m`; + return `\x1B[${colorNumber}m`; };