mirror of
https://github.com/Art-Portal/April.git
synced 2025-01-13 07:03:39 +01:00
pain
This commit is contained in:
parent
5ca6cbcb2e
commit
357be72c14
@ -5,7 +5,7 @@ export default {
|
|||||||
async execute(interaction){
|
async execute(interaction){
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
|
|
||||||
palette = await generateRandomPalette();
|
const palette = await generateRandomPalette();
|
||||||
|
|
||||||
const imageBuffer = await createPaletteImage(palette);
|
const imageBuffer = await createPaletteImage(palette);
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ async function generateRandomPalette() {
|
|||||||
|
|
||||||
// Générateur de couleurs harmonieuses (complémentaires)
|
// Générateur de couleurs harmonieuses (complémentaires)
|
||||||
|
|
||||||
baseColor = Math.floor(Math.random() * 16777215); // Couleur de base aléatoire
|
const baseColor = Math.floor(Math.random() * 16777215); // Couleur de base aléatoire
|
||||||
|
|
||||||
for (let i = 0; i < numColors; i++) {
|
for (let i = 0; i < numColors; i++) {
|
||||||
// Random variations in saturation and brightness
|
// Random variations in saturation and brightness
|
||||||
|
Loading…
x
Reference in New Issue
Block a user