Discuss Scratch

simonc8
Scratcher
43 posts

Pen color and pen color

What is the difference between these two blocks? The first one works with a variable and the second one doesn't:

-Exphire-
Scratcher
1000+ posts

Pen color and pen color

I believe the second gives you a color picker like the one in the art editor, but the first one only accepts numbers.
fdreerf
Scratcher
1000+ posts

Pen color and pen color

The one with the dropdown refers to the hue of the color, and so it does work with variables.

The second refers to a hex color code, so you can choose a specific color. It does work with variables, actually, if the variable is something like #3580C0, then you get a color like this.
simonc8
Scratcher
43 posts

Pen color and pen color

Thanks for the replies. I think they might have come up with something a bit less confusing - I was struggling to help a child debug code where the second block had been used instead of the first by mistake. That mistake is far too easy to make.

Powered by DjangoBB