const drawComponents = () => { /* Code for drawing on the canvas */ // Return the animation interval. return setInterval(() => { /* Code for changes to canvas over time. */ }, 100); };