I’d like to know if it is possible to save background colors of certain buttons in a list. When I tried it, nothing showed up in the list. This is basically what I want to do:
and I try to display the code (the random colour function just retrieves a random item from the all colors list), I see each button with the corresponding item of the list as the background color. This happens even though I’m creating the all colors list out of background colors. Why is the variable code working and the variable color clicked list not working?
Thanks, I hope I made any sense!
If you provide me the problem you want to achieve (and not blocks, but what is your action and what do you expect to get), ill think about it (sometimes is easier to think some issue from the scratch, than trying to correct other`s code )
Thank you @mimostel , but when I try that I don’t get the background colors in the buttons. I’m trying to use the background colors of some buttons after saving them in a list, but I realised that the list seemed empty even after running the code to save the colours. So, to test whether the list is actually populated, I need to display the contents using buttons was the only way I could think of.
I finally realised the issue! I’ve been setting the variable color clicked list to empty before doing the check function and other functions! I’ve shifted it to the end, and now everything works! Thank you so much for your help!