|
|
|
* This function generates a random Roblox shirt using a combination of colors and patterns. |
|
* |
|
* @returns {string} The URL of the generated shirt image |
|
*/ |
|
function generateRobloxShirt() { |
|
|
|
const colors = ["red", "blue", "green", "yellow", "orange", "purple"]; |
|
const patterns = ["stripes", "dots", "checkerboard", "plaid", "camouflage"]; |
|
|
|
|
|
const randomColor = colors[Math.floor(Math.random() * colors.length)]; |
|
const randomPattern = patterns[Math.floor(Math.random() * patterns.length)]; |
|
|
|
|
|
const shirtUrl = `https://www.roblox.com/asset/?id=123456789&color=${randomColor}&pattern=${randomPattern}`; |
|
|
|
|
|
return shirtUrl; |
|
} |