Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Pen color and pen color
- simonc8
-
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-
-
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
-
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.
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
-
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.
- Discussion Forums
- » Questions about Scratch
-
» Pen color and pen color