]>
git.r.bdr.sh - rbdr/tomato-sauce/blob - lib/screens/random.js
6ac706f039ddc5720050a2750373615c2a151073
4 const Random = function (modulation
, width
, height
, renderer
) {
7 for (let i
= 0; i
< height
; i
++) {
8 for (let j
= 0; j
< width
; j
++) {
9 let red
= Math
.floor(Math
.random() * 255);
10 let blue
= Math
.floor(Math
.random() * 255);
11 let green
= Math
.floor(Math
.random() * 255);
13 response
= response
+ renderer(red
, blue
, green
);
14 response
= response
+ ' ';
18 response
= response
+ '\n';
25 module
.exports
= Random
;