fun: tweak

This commit is contained in:
cha0s 2021-02-16 16:29:20 -06:00
parent b9a4779a52
commit ab13271599

View File

@ -11,25 +11,23 @@ export default () => ({
},
shake: ({
frequency = 1,
magnitude = 3,
magnitude = 2,
traits,
i,
length,
}) => {
const lfo = get(traits, 'Evolving.params.lfo', {});
lfo.x = {
frequency,
location: ((i % length) / length),
magnitude: magnitude / 2,
median: 0,
modulators: ['Random'],
resolution: 0.01,
};
lfo.y = {
frequency,
location: ((i % length) / length),
magnitude,
median: 0,
modulators: ['Random'],
resolution: 0.01,
};
set(traits, 'Evolving.params.lfo', lfo);
return traits;