Unless you used a set random color block
Maybe “set color (random), get color (preset color)“ ?
Unless you used a set random color block
Maybe “set color (random), get color (preset color)“ ?
set var((Self)color) to random(1 to 26) // 26 or how many colors there are I forget
set color var((Self)color)
How? Why not show how it can be done?
Monkey {
Set variable self(color) to 1 // dark purple
}
Gorilla {
When self bumps Monkey
If monkey(color) = 1 {
Destroy
}
}
for hsb colors it’d be hard
Setting color to a variable. This isn’t possible w/ clones though
How isn’t it?
What if for example you wanted to make a color picker in an art pad without using clones? How would you do it without this block?
Without clones? U would have each square set color to h(self(h)) s(self(s)) b(self(b)).
Then a general rule, set (h) to (self(h)) and so on with hsb
Then have the drawer draw in the color h s b
Here’s an example
Interesting
It would be useful for things like making the get color feature in this art pad with a regular art pad that doesn’t have an object for each trail.
Noice.
(hopscotch = scratch?)
Yeah, definately!
If this was true then you can actually pixelate stuff on the screen
Even the whole screen
((Self)color)
((Self)sensed color)
Or when, Square colour= Text 2 colour
Set square colour to (text 2) colour +100
I don’t think that’s allowed, because it would force Hopscotch to be purchased by the MIT and merged with Scratch.
Ron just meant that Hopscotch was becoming a lot more similar, not to the point where they actually merge
Noooo i mean their code blocks are getting similar and similar
Then hopscotch then gets as close to scratch (but not merge!)
Bump
((Self)color)
((Self)sensed color)
((Self)average sensed color)
Noice