summaryrefslogtreecommitdiff
path: root/lib/screens/gradients.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/screens/gradients.js')
-rw-r--r--lib/screens/gradients.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/screens/gradients.js b/lib/screens/gradients.js
deleted file mode 100644
index 2d4a2f0..0000000
--- a/lib/screens/gradients.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-/**
- * Draws moving gradient boxes
- *
- * @function GradientsScreen
- * @implements IScreen
- */
-module.exports = function (modulation, width, height, renderer) {
-
- let response = '';
-
- for (let i = 0; i < height; ++i) {
- for (let j = 0; j < width; ++j) {
- const red = ((modulation + i) * 255 / height) % 255;
- const blue = ((modulation + j) * 255 / width) % 255;
- const green = ((modulation + i * j) * 255 / (width * height)) % 255;
-
- response = response + renderer(red, blue, green);
- response = response + ' ';
- }
-
- if (i < height - 1) {
- response = response + '\n';
- }
- }
-
- return response;
-};