This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// see code in action: https://jsfiddle.net/desaroxx/jp4pmd2u/ | |
/* Configuration variables */ | |
var MAX_COLOR = 200; // Max value for a color component | |
var MIN_COLOR = 120; // Min value for a color component | |
var FILL_CHANCE = 0.5; // Chance of a square being filled [0, 1] | |
var SQUARE = 80; // Size of a grid square in pixels | |
var GRID = 5; // Number of squares width and height |
NewerOlder