MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 27: | Line 27: | ||
// Function to generate a random bright color | // Function to generate a random bright color | ||
function getRandomBrightColor() { | function getRandomBrightColor() { | ||
const min = | const min = 60; // Minimum value for bright colors | ||
const h = Math.floor(Math.random() * 255); | const h = Math.floor(Math.random() * 255); | ||
const s = Math.floor(Math.random() * (100 - min) + min); | const s = Math.floor(Math.random() * (100 - min) + min); | ||