X-Git-Url: https://git.r.bdr.sh/rbdr/tomato-sauce/blobdiff_plain/c80b2f4575cfc3d74ec8e0b112943cbd081ffcd7..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`; };