# Am I doing something really stupid?

**URL:** <https://forum.code.org/t/am-i-doing-something-really-stupid/26792>\
**Category:** Website and Tools Questions\
**Created:** [May 8, 2019, 7:19pm UTC](https://forum.code.org/t/am-i-doing-something-really-stupid/26792 "2019-05-08T19:19:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdb2](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdb2/32/4527_2.png) [@jdb2](https://forum.code.org/u/jdb2)\
**Post date:** [May 8, 2019, 7:19pm UTC](https://forum.code.org/t/am-i-doing-something-really-stupid/26792/1 "2019-05-08T19:19:52Z")

</div>

I have been trying to use [Code.org](http://Code.org) to create fractals for my nephew, but, for the life of me, I can’t get _anything_ to be displayed on the screen, although the code does run correctly with the correct messages being put into the debug log.

Here is a very simple example :

[https://studio.code.org/projects/applab/3juHczvh1qd1oFI35XwOv8TzX2E5Th\_j-Au\_gDGfHS4](https://studio.code.org/projects/applab/3juHczvh1qd1oFI35XwOv8TzX2E5Th_j-Au_gDGfHS4)

I should be seeing a blue circle, right? But, no matter how I modify the code, I never see anything.

Is there something fundamentally wrong with what I’m doing?

Thanks,

jdb2

---

<div class="post-metadata">

**Author:** ![jdb2](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdb2/32/4527_2.png) [@jdb2](https://forum.code.org/u/jdb2)\
**Post date:** [May 8, 2019, 7:24pm UTC](https://forum.code.org/t/am-i-doing-something-really-stupid/26792/2 "2019-05-08T19:24:08Z")

</div>

I am receiving a strange error when I call the function to clear the canvas :

```
ERROR: Line: 2: TypeError: Applab.activeCanvas.getContext is not a function 

```

I have no idea why this simple code example is not working…

jdb2

---

<div class="post-metadata">

**Author:** ![jadams1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jadams1/32/4835_2.png) [@jadams1](https://forum.code.org/u/jadams1)\
**Post date:** [May 8, 2019, 8:41pm UTC](https://forum.code.org/t/am-i-doing-something-really-stupid/26792/3 "2019-05-08T20:41:12Z")

</div>

On line 1 use createCanvas() instead of setActiveCanvas()

![Screenshot_2019-05-08%20Check%20out%20what%20I%20made](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/c/c8dcafd41bc0222049f435e79288e169af621ec3.png)

---

<div class="post-metadata">

**Author:** ![kaitie\_o\_bryan](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kaitie_o_bryan/32/2278_2.png) [@kaitie\_o\_bryan](https://forum.code.org/u/kaitie_o_bryan)\
**Post date:** [May 9, 2019, 12:55am UTC](https://forum.code.org/t/am-i-doing-something-really-stupid/26792/4 "2019-05-09T00:55:40Z")

</div>

@jbd2 check out @jadams1 post above - it looks like he fixed it!

---

<div class="post-metadata">

**Author:** ![jdb2](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdb2/32/4527_2.png) [@jdb2](https://forum.code.org/u/jdb2)\
**Post date:** [May 10, 2019, 7:26pm UTC](https://forum.code.org/t/am-i-doing-something-really-stupid/26792/5 "2019-05-10T19:26:49Z")

</div>

Thanks! 😃 It works now 😃 Kind of quirky though 🙂

jdb2
