summaryrefslogtreecommitdiff
path: root/lib/screens/random.js
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-08-25 12:33:03 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-08-25 12:33:03 +0200
commit8ff1162897acc9a393f41edf9faf5593d6c66995 (patch)
treeb93e52d0b0c36a84b29fe0e5dde3d7401ec130eb /lib/screens/random.js
parent3ec8e14833b55d6bff4cf5702f90e1bb9a1b1e40 (diff)
Replace JS with rust
Diffstat (limited to 'lib/screens/random.js')
-rw-r--r--lib/screens/random.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/screens/random.js b/lib/screens/random.js
deleted file mode 100644
index d5de257..0000000
--- a/lib/screens/random.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-/**
- * Draws random colors
- *
- * @function RandomScreen
- * @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 = Math.floor(Math.random() * 255);
- const blue = Math.floor(Math.random() * 255);
- const green = Math.floor(Math.random() * 255);
-
- response = response + renderer(red, blue, green);
- response = response + ' ';
- }
-
- if (i < height - 1) {
- response = response + '\n';
- }
- }
-
- return response;
-};