]> git.r.bdr.sh - rbdr/tomato-sauce/blobdiff - lib/renderers/fake_color.js
Update Documentation
[rbdr/tomato-sauce] / lib / renderers / fake_color.js
index b82bb45659507dbe0d5fac758c952aa4e2975557..b03309c365beac8ffb87b7aabcfaaa6b9d2b59c0 100644 (file)
@@ -1,8 +1,12 @@
 'use strict';
 
-// Sends malformed ANSI 24-bit color strings
-const FakeColor = function (red, blue, green) {
+/**
+ * Returns a malformed 24-bit ansi color
+ *
+ * @function FakeColorRenderer
+ * @implements IRenderer
+ */
+module.exports = function (red, blue, green) {
+
   return `\x1B[28;2;${Math.round(red)};${Math.round(green)};${Math.round(blue)}m`;
 };
-
-module.exports = FakeColor;