chaos anim changes

This commit is contained in:
ntr 2019-12-18 11:12:36 +10:00
parent 44fa6b8c6a
commit 9ce98fe81f

View File

@ -12,7 +12,8 @@ function projectile(x, y, radius, colour) {
cy={y}
r={radius}
fill={colour}
stroke="none"
stroke={colour === '#a52a2a' ? 'none' : '#f5f5f5'}
stroke-width={colour === '#a52a2a' ? '0' : '0.05em'}
filter={colour === '#a52a2a' ? 'url(#chaosRedFilter)' : 'url(#chaosBlueFilter)'}
/>
);
@ -25,7 +26,7 @@ class Chaos extends Component {
const points = randomPoints(20, 30, { x: 0, y: 0, width: 300, height: 100 });
this.charges = points.map(coord => {
const colour = Math.random() >= 0.5 ? '#a52a2a' : '#3050f8';
return projectile(coord[0], coord[1], 14, colour);
return projectile(coord[0], coord[1], '0.5em', colour);
});
}
@ -84,8 +85,8 @@ class Chaos extends Component {
this.animations.push(anime({
targets: ['#chaosRedFilter feTurbulence', '#chaosRedFilter feDisplacementMap'],
baseFrequency: 2,
scale: 20,
numOctaves: 5,
scale: 5,
numOctaves: 3,
easing: 'easeOutSine',
duration: TIMES.TARGET_DURATION_MS,