This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-11-29 19:30:48

xaby
Scratcher
Registered: 2008-02-13
Posts: 49

Is there a "real" color-pipette-sensor I can use in my own programs?

Hello fans,

I don't know if I am doing all right posting my question here.
I know how to make animations with scratch and how to play music and how to
make programs with keyboard or mouse input. I also saw some programs which used the
microphone for there input ...

I am looking for a simple way to get the value of a unknown color from the screen.
Maybe for a colorpicker in my own drawings in my own paint program.
If a use two REPEAT-Blocks with two variables like x and y it would also possible to
copy the content from one place to another as it is possible as with a clone brush in some photo processing software. (scratch build in paint, photoshop ...)

I think it is too much work and too slow if I use for every possible color the sensor:

< touching color [ ] ? >

what I need is more like this: ( which color? )

No TRUE or FALSE, I want to use my answer in the pen.

[ set pen color to [ ] ]

Or if it is possible to get the color from one place/pixel and draw it on another place
with a new effect. Maybe black&white, darker, lighter, change the shade ...

For no missunderstanding, I am not looking for a slower stamp ;-)

Can you help me? Is there a possiblity to solve my problem or to get my colorpicker-block?


--------------------------------------------------------

Can I manipulate the < touching color [ ] ? > block with varibales?
e.g.: < touching color [variable]? >

And I ask every color in a REPEAT-Block ...


Thanks for your help.

<touching color[

Offline

 

#2 2008-11-29 19:55:43

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Is there a "real" color-pipette-sensor I can use in my own programs?

As far as I know, this is not currently possible in Scratch.  It has been on several wish lists that I have seen however!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-12-03 07:07:54

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Is there a "real" color-pipette-sensor I can use in my own programs?

Here is what i think. The sprite you want to be sensing colors have a script that says forever set color 2 (a variable) then when you want the color you were using, have the script be : set pen color to (the variable) then you could also put in pen shad and just change the pen shade without using a variable. Hope that works!  wink


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

Board footer