getting the color of a pixel

2008-03-16 Thread Colin Holgate
For something I'm trying, I want to know the color of a specified pixel on the card. I haven't yet found a built in function for that, so I made one: function getPixel x,y put the screenMouseLoc into ml set the screenMouseLoc to x+the left of this stack,y+the top of this stack put

Re: getting the color of a pixel

2008-03-16 Thread Mark Schonewille
Hi Colin, This might help: http://article.gmane.org/gmane.comp.ide.revolution.user/84652 Maybe it is not exactly what you need, but it help you to get started. Btw, if you go to the Economy-x-Talk homepage (see below) and click on Developers on the left side of the page, you can download a

Re: getting the color of a pixel

2008-03-16 Thread Colin Holgate
On Mar 16, 2008, at 6:31 PM, Mark Schonewille wrote: http://article.gmane.org/gmane.comp.ide.revolution.user/84652 Maybe it is not exactly what you need, but it help you to get started. Thanks, that could be useful. It seems to be for images though, rather than all of the pixels in a

Re: getting the color of a pixel

2008-03-16 Thread Chipp Walters
Mark, Thanks for the plugin...SUPER IDEA and it works great in WinXP! On Sun, Mar 16, 2008 at 4:31 PM, Mark Schonewille [EMAIL PROTECTED] wrote: Btw, if you go to the Economy-x-Talk homepage (see below) and click on Developers on the left side of the page, you can download a search plugin

Re: getting the color of a pixel

2008-03-16 Thread Mark Schonewille
Hi Colin, Sorry if the script wasn't too helpful. Right now, I am a bit too busy to look at it in detail. You could check out the screenMouseLoc and the mouseColor. Best regards, Mark Schonewille -- Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com

Re: getting the color of a pixel

2008-03-16 Thread Colin Holgate
On Mar 16, 2008, at 6:59 PM, Mark Schonewille wrote: Sorry if the script wasn't too helpful. Right now, I am a bit too busy to look at it in detail. You could check out the screenMouseLoc and the mouseColor. You're so funny! Either that or really are busy. My script I posted uses those

Re: getting the color of a pixel

2008-03-16 Thread Chipp Walters
Nope, no built-in way. Yours is fine. Interesting is that you can also find the mouseColor under the cursor even if outside the stack. One of the ways I use to 'grab' colors from an eyedropper like tool. -Chipp ___ use-revolution mailing list

Re: getting the color of a pixel

2008-03-16 Thread J. Landman Gay
Colin Holgate wrote: For something I'm trying, I want to know the color of a specified pixel on the card. I haven't yet found a built in function for that, so I made one: function getPixel x,y put the screenMouseLoc into ml set the screenMouseLoc to x+the left of this stack,y+the top of