Discuss Scratch

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.

bacphu123 wrote:

There is no way to set a colour to a variable. And there is no way to get a colour block.
(color [#86095c])
It is possible to set a variable to a color. The following code works:
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.

Powered by DjangoBB