Random Background colors from Switches

Hi, i have to do a random change of background colors, previous selected by this four switches. I am using two screens. On the first i have the switches and after you click the button, you go to the second screen where the colors have to be changed. How can i do?

Cattura

Hi,

check it

https://x.thunkable.com/projects/5cd67a72c2b0332fddd20d8b/project/properties/designer/

Hi @ALEX_ANTONPIO_NOTORE, welcome to the Thunkable community! :wave:

Do you have to use switches? Have you considered using sliders instead??

Is there a way to select single colors?

This can be done. Instead of a random number generation block, use a numeric block with the desired color value.

Color can be set as follows

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

or

#ff0
#f0f8
hsl(200, 100%, 50%)
hsla(200, 100%, 50%, 0.1)
rgba(0,0,0,0) or “transparent”.

1 Like

The app now works, thank you