Am I doing something really stupid?

I have been trying to use 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

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

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

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

Screenshot_2019-05-08%20Check%20out%20what%20I%20made

1 Like

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

Thanks! :smiley: It works now :smiley: Kind of quirky though :slightly_smiling_face:

jdb2