feat: colors

This commit is contained in:
2025-10-12 10:35:56 +02:00
parent 91d8bd410c
commit 9a75b23169
12 changed files with 272 additions and 136 deletions

View File

@@ -12,6 +12,12 @@ class AuroraCurtainsPreset extends BasePreset {
waveSpeed: 0.35,
horizontalSway: 0.45,
brightness: 1.0,
color1: '01010a',
color2: '041332',
color3: '0c3857',
color4: '1aa07a',
color5: '68d284',
color6: 'f4f5c6',
};
}
@@ -41,12 +47,12 @@ class AuroraCurtainsPreset extends BasePreset {
const timeSeconds = this.frameCount * 0.05; // Convert frame count to time
const paletteStops = [
{ stop: 0.0, color: hexToRgb('01010a') },
{ stop: 0.2, color: hexToRgb('041332') },
{ stop: 0.4, color: hexToRgb('0c3857') },
{ stop: 0.65, color: hexToRgb('1aa07a') },
{ stop: 0.85, color: hexToRgb('68d284') },
{ stop: 1.0, color: hexToRgb('f4f5c6') },
{ stop: 0.0, color: hexToRgb(this.getParameter('color1') || '01010a') },
{ stop: 0.2, color: hexToRgb(this.getParameter('color2') || '041332') },
{ stop: 0.4, color: hexToRgb(this.getParameter('color3') || '0c3857') },
{ stop: 0.65, color: hexToRgb(this.getParameter('color4') || '1aa07a') },
{ stop: 0.85, color: hexToRgb(this.getParameter('color5') || '68d284') },
{ stop: 1.0, color: hexToRgb(this.getParameter('color6') || 'f4f5c6') },
];
for (let row = 0; row < this.height; ++row) {
@@ -101,6 +107,12 @@ class AuroraCurtainsPreset extends BasePreset {
waveSpeed: { type: 'range', min: 0.1, max: 2.0, step: 0.05, default: 0.35 },
horizontalSway: { type: 'range', min: 0.1, max: 1.0, step: 0.05, default: 0.45 },
brightness: { type: 'range', min: 0.1, max: 1.0, step: 0.1, default: 1.0 },
color1: { type: 'color', default: '01010a' },
color2: { type: 'color', default: '041332' },
color3: { type: 'color', default: '0c3857' },
color4: { type: 'color', default: '1aa07a' },
color5: { type: 'color', default: '68d284' },
color6: { type: 'color', default: 'f4f5c6' },
},
width: this.width,
height: this.height,