isuttell / sine-waves

Generate multiple configurable sine waves
Other
415 stars 67 forks source link

Change the waves speed and resize on running = false #5

Closed MiquelGatiusF closed 8 years ago

MiquelGatiusF commented 8 years ago

As you can see in the title i need to modify the speed of a canvas, my problem is the canvas dissapear when you resize the browser. That happens when i turn the wave.running to false.. wave.speed = 0; doesn't work.

MiquelGatiusF commented 8 years ago

Created a function on.resize() to redraw everything again.

tiansial commented 1 year ago

Created a function on.resize() to redraw everything again.

you mind sharing how did you redraw the whole thing on resize?