Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I didn't choose da color palette :)
This code did :))

function generateWarmColor(inputNumber) {
 var seed = inputNumber * 97;
 var rand = function() {
 seed = (seed * 9301 + 49297) % 233280;
 return seed / 233280;
 };
 var red = Math.round(rand() * 200 + 55);
 var green = Math.round(rand() * 170 + 85);
 var blue = Math.round(rand() * 150 + 105);
 return `${red};${green};${blue}`;
}