Variables in list having color

Is there a way to make variables into colors or make a list with color in it?

If you want to change the orange color to a different color, you can't. However you can stick costumes in lists, which can allow you to create a list of colors. You can load the "Colors and crayons" library to get a block that reports a color as a costume.

untitled script pic

Hi, welcome to the forum!

Yes, we represent colors as 1x1-pixel costumes. The Colors and Crayons library has blocks that do that, or you can make your own.

Ah, you beat me!

I think the OP meant making a color be the value of a variable, not changing the Variables category color. So just SET var TO (COLOR color).

Sorry, I guess I worded the question very weird. I meant if you can do something like Insert color at 9 of list, I put the variable changing color in there too so if you couldn't make a color in list I could try to make it all be variables with color as a value

Big Idea: If something is representable as a value at all, it's a value in all contexts. There's nothing that can be a list item but not a variable value, or vice versa.

Color input of the Untitled script pic - 2024-10-12T002003.204 is "static" so a variant of this block must be created (or modified primitive)
untitled script pic - 2024-10-12T195546.119

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