08-14-2013 10:39 AM
A hundred bucks to anyone who makes them roll when they hear the wife's voice!!!!!
08-14-2013 10:53 AM
@Jeffrey_Zola wrote:
A hundred bucks to anyone who makes them roll when they hear the wife's voice!!!!!
What's the dominant frequency? 😄
08-14-2013 10:57 AM - edited 08-14-2013 10:58 AM
Since they eyes are Knobs they never can look directly at you!
Example:
(Source: http://www.javascriptkit.com/script/script2/xeye.shtml )
Perhaps you could draw circles for eyes in a 2D Picture indicator, hmmm.
08-14-2013 11:01 AM
@altenbach wrote:
@Jeffrey_Zola wrote:
A hundred bucks to anyone who makes them roll when they hear the wife's voice!!!!!
What's the dominant frequency? 😄
Not really sure. But she's frequently dominant!
08-14-2013 12:43 PM
@Craig_ wrote:
Since they eyes are Knobs they never can look directly at you!
Perhaps you could draw circles for eyes in a 2D Picture indicator, hmmm.
Sounds simple enough - take the current coords of the cursor and convert that to picture coords (subtract the picture control's position and origin, etc., I don't think there's a dedicated method) and draw the circle at that point, but before you draw it, you need to use In Range and Coerce to keep those values within the circle. To do that, just use the reverse method of what I did in the earlier code to convert the r and theta to the X and Y of the edge of the circle.
You will probably have to account for the size of the circle you draw both for centering on the cursor and for not drawing over the actual circumference on the eye.
I'll leave the actual implementation to someone else.
Of course, if the eye itself is not a circle (in your Java example it's an ellipse), the story could be more complicated. Presumably in the case of an ellipse you would have to use the ellipse equation rather than the simple polar to XY conversion to get the edge.
08-14-2013 02:23 PM
@altenbach wrote:
Of course we could satirize the recent NSA scandal, showing the power of scalable code. 😄
Altenbach, that is the creepiest front panel I've ever seen. And I can't seem to stop... staring back at... it...
08-14-2013 03:58 PM - edited 08-14-2013 03:59 PM
@altenbach wrote:
Of course we could satirize the recent NSA scandal, showing the power of scalable code.
I always figured Altenbach had a lot of pupils following him around....
Especially here on the forums, with his wealth of LabVIEW knowledge and expertise!
-AK2DM
08-14-2013 03:58 PM
Thanks, tst. That is similar to what I did, except I used altenbach's graphics rather than your more impressive ones.
While we all know who is fastest, we now know who blinks first as well.
Lynn
08-15-2013 04:05 PM
So I was a little bored and I added a mouth that tries to eat the mouse. As you get closer, it opens wider. The appearance is pretty crude but o well.
Code is based on the radius from the top center of the bottom set of teeth (picture controls). Constants used worked on my system.
08-15-2013 06:46 PM
@pjr1121 wrote:
So I was a little bored and I added a mouth that tries to eat the mouse. As you get closer, it opens wider. The appearance is pretty crude but o well.
Code is based on the radius from the top center of the bottom set of teeth (picture controls). Constants used worked on my system.
Now I know when my wife rolls HER eyes at the likes of us.....