# How to make the drawing of sprite change colour

**URL:** <https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [December 23, 2019, 3:14am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705 "2019-12-23T03:14:57Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robotpro](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@Robotpro](https://community.thunkable.com/u/Robotpro)\
**Post date:** [December 23, 2019, 3:14am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/1 "2019-12-23T03:14:57Z")

</div>

how do I make the drawing of the sprite change colour!?

Also where did the blue chatbox to ask questions go in thunkable!?  
I normally ask Domhall my questions!

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [December 23, 2019, 7:19am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/2 "2019-12-23T07:19:34Z")

</div>

> [@Robotpro](#):
>
> Also where did the blue chatbox to ask questions go in thunkable!?

It’s there at it’s own place - bottom right of the page

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/c/8c65ec5843cff88ee24e0b24fdd8f85aeeb25cb6.png)

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [December 23, 2019, 10:01am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/3 "2019-12-23T10:01:21Z")

</div>

> [@Robotpro](#):
>
> I normally ask Domhall my questions

You can ask @Domhnall questions here too! 😂

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [December 23, 2019, 10:56am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/4 "2019-12-23T10:56:32Z")

</div>

😂

---

<div class="post-metadata">

**Author:** ![Robotpro](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@Robotpro](https://community.thunkable.com/u/Robotpro)\
**Post date:** [December 24, 2019, 6:14pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/5 "2019-12-24T18:14:30Z")

</div>

hello,

I have tried to make the sprite drawing line change colour but it doesn’t work.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/f/af3e9437c979c4a13d27825d9ad7aaa2e21e3f23.png)

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [December 24, 2019, 10:58pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/6 "2019-12-24T22:58:26Z")

</div>

The advantage of asking questions here in the community is that you can get answers from anyone, including @domhnallohanlon!

-Mark

---

<div class="post-metadata">

**Author:** ![BlueWhaleYT](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bluewhaleyt/32/28437_2.png) [@BlueWhaleYT](https://community.thunkable.com/u/BlueWhaleYT)\
**Post date:** [December 25, 2019, 3:57am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/7 "2019-12-25T03:57:21Z")

</div>

Hi there @Robotpro.  
Why don’t you try to use the sprite to draw different colors?  
I mean that assume you have two sprites in your project.They are red pen and blue pen.  
Set the red pen drawing color to red and blue pen drawing color to blue.  
When you drag the red pen and it would drawing along with red line.The blue is also.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 25, 2019, 8:51am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/8 "2019-12-25T08:51:49Z")

</div>

Change mode width and color for sprite.

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/b/5b0a8a2e264274bcf7171f4cde28dab00155272d.png)

---

<div class="post-metadata">

**Author:** ![hihihappyshano0](https://avatars.discourse-cdn.com/v4/letter/h/6de8d8/32.png) [@hihihappyshano0](https://community.thunkable.com/u/hihihappyshano0)\
**Post date:** [December 18, 2020, 12:42pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/9 "2020-12-18T12:42:16Z")

</div>

I cannot find the same green blocks and mine dont have the “sprite 1”

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 18, 2020, 1:52pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/10 "2020-12-18T13:52:45Z")

</div>

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3fca2d052e5157053eb7db892823411e5a629b01.png)

---

<div class="post-metadata">

**Author:** ![riverviewgreeneryrms](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@riverviewgreeneryrms](https://community.thunkable.com/u/riverviewgreeneryrms)\
**Post date:** [June 4, 2021, 3:34pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/11 "2021-06-04T15:34:55Z")

</div>

I’ve built that code, to change the drawing color. A button that changes it to a new drawcolor, that is. But for me the button press makes the canvas disappear in the live test and the responsive web app page.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 4, 2021, 3:50pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/12 "2021-06-04T15:50:00Z")

</div>

Post a screenshot of your blocks and if possible, a link to your project.

---

<div class="post-metadata">

**Author:** ![riverviewgreeneryrms](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@riverviewgreeneryrms](https://community.thunkable.com/u/riverviewgreeneryrms)\
**Post date:** [June 4, 2021, 6:23pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/13 "2021-06-04T18:23:47Z")

</div>

Here’s the image of the code:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/b/bb16aec1857a5cf9df04f156a8a967d2eb2d9e8a.png)

and then the links to the project:  
[https://x.thunkable.com/copy/d6f2c631d9e8bc4968cddc4d3e513568](https://x.thunkable.com/copy/d6f2c631d9e8bc4968cddc4d3e513568)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 4, 2021, 9:29pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/14 "2021-06-04T21:29:30Z")

</div>

For me, when I click on the Red button, it crashes when trying to change the drawing width to 10. I’m not sure why.

---

<div class="post-metadata">

**Author:** ![riverviewgreeneryrms](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@riverviewgreeneryrms](https://community.thunkable.com/u/riverviewgreeneryrms)\
**Post date:** [June 7, 2021, 12:05pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/15 "2021-06-07T12:05:23Z")

</div>

As far as I see, all the colors cause a crash. I tried taking the two other pieces of code out of the button press to change that color, and it still causes the crash.

---

<div class="post-metadata">

**Author:** ![riverviewgreeneryrms](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@riverviewgreeneryrms](https://community.thunkable.com/u/riverviewgreeneryrms)\
**Post date:** [June 8, 2021, 3:29pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/16 "2021-06-08T15:29:40Z")

</div>

![screenshot code changed](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/014b1aa07a66178a60867337261515a64356db7f.png)  
I changed the code, and it still crashed with the color change buttons. Any idea how to make them not crash, but instead change the drawing color for a sprite?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 8, 2021, 4:59pm UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/17 "2021-06-08T16:59:38Z")

</div>

It took me a while to realize what you’ve done wrong.

You’re using an Any Component block to set the Stage properties. And you’re specifying `Sprite1` as a stage. But it’s not a stage… it’s a sprite. You need to either refer _directly_ to a sprite or if you for some reason still need to use the Any Component blocks then you need to `set Sprite...` **not** `set Stage...`

**Edit:** And actually, I don’t think this is possible at all with a sprite. The normal drawing width block is this one:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/662cf3683fa21bbe774f2f306ace3fc5f2b1d787.png)

You were trying to force a sprite to have a property (Drawing Width) that it doesn’t normally have. Hence the crash!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:46am UTC](https://community.thunkable.com/t/how-to-make-the-drawing-of-sprite-change-colour/378705/18 "2024-11-08T11:46:15Z")

</div>


