set the saturation to max during music syncing so it doesn't look dull in case the user messed with their saturation in another app
This commit is contained in:
parent
2895d4918b
commit
dc035db886
3 changed files with 3 additions and 4 deletions
|
|
@ -311,7 +311,7 @@ export default Component.extend({
|
||||||
.velocity({ scale: 1 }, 100);
|
.velocity({ scale: 1 }, 100);
|
||||||
|
|
||||||
this.get('activeLights').forEach(light => {
|
this.get('activeLights').forEach(light => {
|
||||||
let options = { hue: Math.floor(Math.random() * 65535) };
|
let options = { hue: Math.floor(Math.random() * 65535), sat: 254 };
|
||||||
|
|
||||||
if (this.get('lightsData')[light].state.on === false) {
|
if (this.get('lightsData')[light].state.on === false) {
|
||||||
options.on = true;
|
options.on = true;
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ export default Component.extend(helperMixin, visualizerMixin, {
|
||||||
|
|
||||||
if (!isNone(hue)) {
|
if (!isNone(hue)) {
|
||||||
options.hue = hue;
|
options.hue = hue;
|
||||||
|
options.sat = 254;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.get('blackoutMode')) {
|
if (this.get('blackoutMode')) {
|
||||||
|
|
@ -601,6 +602,7 @@ export default Component.extend(helperMixin, visualizerMixin, {
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
on: preMusicLightsDataCache[lightIndex].state.on,
|
on: preMusicLightsDataCache[lightIndex].state.on,
|
||||||
hue: preMusicLightsDataCache[lightIndex].state.hue,
|
hue: preMusicLightsDataCache[lightIndex].state.hue,
|
||||||
|
sat: preMusicLightsDataCache[lightIndex].state.sat,
|
||||||
bri: preMusicLightsDataCache[lightIndex].state.bri
|
bri: preMusicLightsDataCache[lightIndex].state.bri
|
||||||
}),
|
}),
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ export default Mixin.create({
|
||||||
threshold: {
|
threshold: {
|
||||||
range: { min: 0, max: 0.5 },
|
range: { min: 0, max: 0.5 },
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
defaultValue: 0.3,
|
|
||||||
pips: {
|
pips: {
|
||||||
mode: 'values',
|
mode: 'values',
|
||||||
values: [0, 0.5],
|
values: [0, 0.5],
|
||||||
|
|
@ -39,7 +38,6 @@ export default Mixin.create({
|
||||||
hueRange: {
|
hueRange: {
|
||||||
range: { min: 0, max: 65535 },
|
range: { min: 0, max: 65535 },
|
||||||
step: 1,
|
step: 1,
|
||||||
defaultValue: 0.3,
|
|
||||||
pips: {
|
pips: {
|
||||||
mode: 'values',
|
mode: 'values',
|
||||||
values: [0, 25500, 46920, 65535],
|
values: [0, 25500, 46920, 65535],
|
||||||
|
|
@ -65,7 +63,6 @@ export default Mixin.create({
|
||||||
brightnessRange: {
|
brightnessRange: {
|
||||||
range: { min: 1, max: 254 },
|
range: { min: 1, max: 254 },
|
||||||
step: 1,
|
step: 1,
|
||||||
defaultValue: 0,
|
|
||||||
pips: {
|
pips: {
|
||||||
mode: 'values',
|
mode: 'values',
|
||||||
values: [1, 63, 127, 190, 254],
|
values: [1, 63, 127, 190, 254],
|
||||||
|
|
|
||||||
Reference in a new issue