Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Blocks/variables/color blocks.
- cs1950884
-
Scratcher
17 posts
Blocks/variables/color blocks.
How would i create a distance to color block? Or how can i set a variable to a color? i have seen the variables as text before so… Also, how would i use a custom block to create an if distance to color black is < 5 px….. Please! I need this
- bacphu123
-
Scratcher
100+ posts
Blocks/variables/color blocks.
There is no way to set a colour to a variable. And there is no way to get a colour block.
(color [#86095c])
- Maximouse
-
Scratcher
1000+ posts
Blocks/variables/color blocks.
There is no way to set a colour to a variable. And there is no way to get a colour block.It is possible to set a variable to a color. The following code works:(color [#86095c])
set [color v] to [ #ff0000]
set pen color to (color)
- Maximouse
-
Scratcher
1000+ posts
Blocks/variables/color blocks.
About distance to color, try making a circular sprite and increase its size until it touches that color, then do some math.
- Discussion Forums
- » Questions about Scratch
-
» Blocks/variables/color blocks.