I haven't messed around with the source code much or explored Advanced Topics very much, so please excuse me if this has already been asked or solved.
Anyway, has anyone made a reporter block that can return the number of the color of a pixel in Scratch (perhaps the center pixel a sprite is touching)? For instance, if the sprite is touching red, it will return 0.
I hope my question was clear- I don't hang around here much, so I don't know the lingo.
Offline
I've not heard of one that works using the 0-200 colour system of the Scratch colour effect, but if you look at the modified version of Scratch, Panther there are blocks in there that allow you to read the colour of a specified pixel in either Hexadecimal or RGB. The source code for the blocks can be found in the browser by following the path dev>turn fill screen off in Panther. Hope this helps!
Offline
sparks wrote:
I've not heard of one that works using the 0-200 colour system of the Scratch colour effect, but if you look at the modified version of Scratch, Panther there are blocks in there that allow you to read the colour of a specified pixel in either Hexadecimal or RGB. The source code for the blocks can be found in the browser by following the path dev>turn fill screen off in Panther. Hope this helps!
Oo, cool. Thanks. I'll check it out.
Offline