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!

123789456000 wrote:

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.
CosmicHamster
Scratcher
100+ posts

New block, about colours!

I support!
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!

123789456000 wrote:

[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!!
I know, I'm suggesting that they add it!
123789456000
Scratcher
66 posts

New block, about colours!

[uOOHHH>>>>>]
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]

123789456000 wrote:

when green flag clicked
repeat (infinity)

turn ccw (1000000) degrees
end
Please stick to the topic.

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!

kvackkvack wrote:

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
Yea, I (no offense) like this better
Penguin9090_new
Scratcher
500+ posts

New block, about colours!

little_kitten wrote:

kvackkvack wrote:

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
Yea, I (no offense) like this better
Me too… Support this!
ShadowFlareX
Scratcher
100+ posts

New block, about colours!

What type of values would it report?
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!

little_kitten wrote:

kvackkvack wrote:

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
Yea, I (no offense) like this better
^ This. It should be a reporter though.
CatsUnited
Scratcher
1000+ posts

New block, about colours!

stickfiregames wrote:

little_kitten wrote:

kvackkvack wrote:

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
Yea, I (no offense) like this better
^ This. It should be a reporter though.
(color at x: () y: () :: sensing)
Support.
123789456000
Scratcher
66 posts

New block, about colours!

Yeah. I just mean I want this block:

<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
<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!

123789456000 wrote:

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?

Powered by DjangoBB