# Multiple Canvas but only one active

**URL:** <https://forum.code.org/t/multiple-canvas-but-only-one-active/15518>\
**Category:** Unit and Lesson Discussion\
**Tags:** csp-unit-5, csp-unit-5-lesson-17\
**Created:** [April 11, 2018, 3:41pm UTC](https://forum.code.org/t/multiple-canvas-but-only-one-active/15518 "2018-04-11T15:41:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdipietro](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jdipietro](https://forum.code.org/u/jdipietro)\
**Post date:** [April 11, 2018, 3:41pm UTC](https://forum.code.org/t/multiple-canvas-but-only-one-active/15518/1 "2018-04-11T15:41:28Z")

</div>

I have a student who wants to have a home screen canvas and level one canvas. She wants to have only one canvas active at a time. So the question is how do we set a canvas to inactive while keeping the objects written on them?

---

<div class="post-metadata">

**Author:** ![frank\_w\_lee](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/frank_w_lee/32/4895_2.png) [@frank\_w\_lee](https://forum.code.org/u/frank_w_lee)\
**Post date:** [April 12, 2018, 1:47am UTC](https://forum.code.org/t/multiple-canvas-but-only-one-active/15518/2 "2018-04-12T01:47:36Z")

</div>

Hi @jdipietro,

Can you be more specific about what the student wants to be able to do? From my understanding, when you set another canvas as active, any previous canvas that was active still retains whatever was drawn on it.

Not sure exactly what you’re asking, but I tried to make a little demo app that switches back and forth between two canvases…

> **[Check out what I made](https://studio.code.org/projects/applab/7zt0t63WCok7qoFdiS3QFg)**
>
> I wrote the code myself with Code.org

Frank
