# Blocks suggestion for random colour change app

**URL:** <https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 30, 2022, 4:52am UTC](https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337 "2022-01-30T04:52:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![angus.wong](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@angus.wong](https://community.thunkable.com/u/angus.wong)\
**Post date:** [January 30, 2022, 4:52am UTC](https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337/1 "2022-01-30T04:52:34Z")

</div>

Hi all,I am new to thunable.Thank you in advance for the ideas and suggestions.

I am trying to make an app that changes background colour (e.g. red geen blue Only) but randomly at each second when clicked start.

I am struggling to find ways to build the blocks for this colour change.  
All suggestions, solutions and ideas welcomed. Orz

---

<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:** [January 30, 2022, 5:41am UTC](https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337/2 "2022-01-30T05:41:43Z")

</div>

You can use an image for this (a solid color jpg for example) or your can change the background color of a component. I recommend changing the background.

See the [documentation](https://C02V235KJ1G6) about color, including several ways to set the background color.

For the random part, you can either make a list of colors and the [choose a random item](https://docs.thunkable.com/lists#sum-min-max-averages-standard-deviation-random-item) or you can choose a random number (see the Math drawer) and use an if/elseif/else blocks to set the color.

If you get stuck, post a screenshot of the blocks you’ve tried and someone can help you further.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 30, 2022, 7:04am UTC](https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337/3 "2022-01-30T07:04:34Z")

</div>

These blocks will make the trick

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

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [January 30, 2022, 1:27pm UTC](https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337/4 "2022-01-30T13:27:04Z")

</div>

To compliment @muneer’s post, you can assign any element any CSS text color! This demo gives all 134. It also highlights the various color formats accepted!

[https://x.thunkable.com/projectPage/61eac056f9a96c00114a89b8](https://x.thunkable.com/projectPage/61eac056f9a96c00114a89b8)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [April 30, 2022, 1:27pm UTC](https://community.thunkable.com/t/blocks-suggestion-for-random-colour-change-app/1704337/5 "2022-04-30T13:27:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
