Discuss Scratch
- 123789456000
-
Scratcher
66 posts
New block, about colours!
Could the Scratch team possibly make a sensing block that reports what colour the sprite is touching? Everyone says its a great idea and when you do make it, Scratch will be a lot better.
Last edited by 123789456000 (Feb. 23, 2015 17:42:43)
- fanonscratch12
-
Scratcher
41 posts
New block, about colours!
Could the Scratch team possibly make a sensing block that reports what colour the sprite is touching? Everyone says its a great idea and when you do make it, Scratch will be a lot better.This is a great idea.
- kvackkvack
-
Scratcher
500+ posts
New block, about colours!
I do not support this, but rather this block:
color at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
- 123789456000
-
Scratcher
66 posts
New block, about colours!
[quote=kvackkvack]I do not support this, but rather this block:
[scratchblocks]
color at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
[/scratchblocks]
[/quote]
But this block isn't there!!
- kvackkvack
-
Scratcher
500+ posts
New block, about colours!
I know, I'm suggesting that they add it![quote=kvackkvack]I do not support this, but rather this block:
[scratchblocks]
color at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
[/scratchblocks]
[/quote]
But this block isn't there!!
- 123789456000
-
Scratcher
66 posts
New block, about colours!
when green flag clicked
repeat (infinity)
turn ccw (1000000) degrees
end
Last edited by 123789456000 (Feb. 23, 2015 18:43:02)
- Gaza101
-
Scratcher
500+ posts
New block, about colours!
Support! Here's some scratchblocks for it too:
<colour this sprite is touching :: sensing>
[scratchblocks]
<colour this sprite is touching :: sensing>
[/scratchblocks]
Please stick to the topic.when green flag clicked
repeat (infinity)
turn ccw (1000000) degrees
end
Last edited by Gaza101 (Feb. 23, 2015 18:57:15)
- ijohn007
-
Scratcher
100+ posts
New block, about colours!
<touching color :: sensing> //Has already been suggested, but I still support
- little_kitten
-
Scratcher
500+ posts
New block, about colours!
I do not support this, but rather this block:Yea, I (no offense) like this bettercolor at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
- Penguin9090_new
-
Scratcher
500+ posts
New block, about colours!
Me too… Support this!I do not support this, but rather this block:Yea, I (no offense) like this bettercolor at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
- 123789456000
-
Scratcher
66 posts
New block, about colours!
It would report the colour as a 24 bit RGB value.

























































- stickfiregames
-
Scratcher
1000+ posts
New block, about colours!
^ This. It should be a reporter though.I do not support this, but rather this block:Yea, I (no offense) like this bettercolor at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
- CatsUnited
-
Scratcher
1000+ posts
New block, about colours!
^ This. It should be a reporter though.I do not support this, but rather this block:Yea, I (no offense) like this bettercolor at x: () y: () :: sensing
// To check what color the sprite is touching, all you now have to do is this:
color at x: (x position :: motion) y: (y position :: motion) :: sensing
(color at x: () y: () :: sensing)Support.
- 123789456000
-
Scratcher
66 posts
New block, about colours!
Yeah. I just mean I want this block:
Or this:
But I just want them to report a 24-bit RGB value. PLEEAASE!!!!!
<touching colour :: sensing
Or this:
<colour at x:() y:() :: sensing
But I just want them to report a 24-bit RGB value. PLEEAASE!!!!!
- TheHockeyist
-
Scratcher
1000+ posts
New block, about colours!
There's this in Scratch already…
<touching color [#ff0000] ?>So you want to detect the color it's touching? Indifferent. What if the sprite is large and touches many colors?
Last edited by TheHockeyist (March 23, 2015 17:10:11)
- 123789456000
-
Scratcher
66 posts
New block, about colours!
Well, I want it to REPORT a VALUE as an Rgb colour. The
block only detects 1 colour.
And it would report the colour number the center of the sprite is touching.
<touching color [#ff0000] ?>
block only detects 1 colour.
And it would report the colour number the center of the sprite is touching.
- TheHockeyist
-
Scratcher
1000+ posts
New block, about colours!
Well, I want it to REPORT a VALUE as an Rgb colour. The<touching color [#ff0000] ?>
block only detects 1 colour.
And it would report the colour number the center of the sprite is touching.
What if the center touches multiple pixels, e.g. a 2x2 sprite?











