Open josef-karpinski opened 6 days ago
We can use CSS to add a blur filter to the sketch div returned in P5Wrapper.jsx.
P5Wrapper.jsx
... return ( <div style={{ overflow: 'hidden' }}> <div style={{filter: 'blur(12px)'}} ref={sketchRef} /> </div> );
We can communicate the gameState() from inside the sketch to only apply the blur during "pregame" and/or "countdown".
gameState()
We can use CSS to add a blur filter to the sketch div returned in
P5Wrapper.jsx
.We can communicate the
gameState()
from inside the sketch to only apply the blur during "pregame" and/or "countdown".