# Canvas drawing color bug

**URL:** <https://community.thunkable.com/t/canvas-drawing-color-bug/2939944>\
**Category:** Issues / Bugs\
**Created:** [April 10, 2024, 7:23pm UTC](https://community.thunkable.com/t/canvas-drawing-color-bug/2939944 "2024-04-10T19:23:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![john\_shelby\_hhs](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@john\_shelby\_hhs](https://community.thunkable.com/u/john_shelby_hhs)\
**Post date:** [April 10, 2024, 7:23pm UTC](https://community.thunkable.com/t/canvas-drawing-color-bug/2939944/1 "2024-04-10T19:23:00Z")

</div>

Hi Thunkable folks,  
I have a simple drawing app that has a funny bug in it. The same app worked about a year ago, so it seems like it is potentially due to a Thunkable change.

You can find the app here: [Thunkable](https://x.thunkable.com/copy/3064d08adea7cd940fb55a454e5c7470)

This app runs fine for me on my device, but it crashes immediately in the Web Preview. I have determined the the culprit is setting a Canvas Stage’s “drawing color” when the screen is opening. This crashes the web preview:  
 ![2024-04-10 12_20_13-Window](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e612ad31c7597b9526626052dde82e6fc138cd6.png)

The problem is that I want to have an “options” screen, and I need to set the drawing color when I return from that options screen. So I need to set the color on Screen Open - and I’m not sure what other event to use so it’s set appropriately. The crash is avoided if I stick a “wait 1 second” block at the top - I assume this gives the canvas a moment to load first - but feels like a hack.

Any ideas?

---

_[View the full topic](https://community.thunkable.com/t/canvas-drawing-color-bug/2939944)._
