<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Quick and simple solution to a lot of similar problems, use [range].<br><br>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. <br><br>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.<br><br>Andrew<br><br>&gt; From: cinetron@passport.ca<br>&gt; To: pd-list@iem.at<br>&gt; Date: Thu, 8 Apr 2010 22:56:37 -0400<br>&gt; Subject: [PD] gemmouse and pix_data<br>&gt; <br>&gt; Hi,<br>&gt; I'm trying to use gemmouse with pix_data to get the color values of<br>&gt; pixels in an image under the mouse. gemmouse and pix_data use different<br>&gt; co-ordinates? Is there a simple way to do this. It would be simpler if<br>&gt; pix_draw put the image I was looking at into the bottom left of the gem<br>&gt; window but it doesn't also because translateXYZ uses a different scale<br>&gt; again from pix_data and gemmouse that complicates the matter. Anyway I'm<br>&gt; sure there is a simple way to get the color values under the cursor. Any<br>&gt; hints?<br>&gt; Thanks,<br>&gt; Jim<br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Pd-list@iem.at mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br>                                               <br /><hr />Get a new e-mail account with Hotmail - Free. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>