You might want to go through this canvas tutorial: Canvas Tutorial It explains how to keep the canvas drawing through resize events.
You might want to go through this canvas tutorial: Canvas Tutorial It explains how to keep the canvas drawing through resize events.