[PD] gemmouse and pix_data

Andrew Faraday jbturgid at hotmail.com
Fri Apr 9 10:46:24 CEST 2010

Quick and simple solution to a lot of similar problems, use [range].

It needs four arguments, the input range (in this case 0 to the size of your gemwin) as two arguments, and the output range (usually -4 to 4) and it will convert one into the other. Although to make this work on gem you need one for each of the x and y axes. 

You can do this by re-scaling yourself, although this does take more time and effort, but also can provide more control. In the end it's your own choice.


> From: cinetron at passport.ca
> To: pd-list at iem.at
> Date: Thu, 8 Apr 2010 22:56:37 -0400
> Subject: [PD] gemmouse and pix_data
> Hi,
> I'm trying to use gemmouse with pix_data to get the color values of
> pixels in an image under the mouse. gemmouse and pix_data use different
> co-ordinates? Is there a simple way to do this. It would be simpler if
> pix_draw put the image I was looking at into the bottom left of the gem
> window but it doesn't also because translateXYZ uses a different scale
> again from pix_data and gemmouse that complicates the matter. Anyway I'm
> sure there is a simple way to get the color values under the cursor. Any
> hints?
> Thanks,
> Jim
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100409/244fa615/attachment.htm>

More information about the Pd-list mailing list