X-Git-Url: https://git.r.bdr.sh/rbdr/tomato-sauce/blobdiff_plain/a41763dd463339765081c1f968a7b93b8ccf572f..a0666be3ab58ed83ad6d622cfe2b8293c40dffbb:/lib/renderers/fake_color.js diff --git a/lib/renderers/fake_color.js b/lib/renderers/fake_color.js index b82bb45..d0482dc 100644 --- a/lib/renderers/fake_color.js +++ b/lib/renderers/fake_color.js @@ -1,8 +1,12 @@ 'use strict'; -// Sends malformed ANSI 24-bit color strings -const FakeColor = function (red, blue, green) { - return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`; -}; +/** + * Returns a malformed 24-bit ansi color + * + * @function FakeColorRenderer + * @implements IRenderer + */ +module.exports = function (red, blue, green) { -module.exports = FakeColor; + return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`; +};