[visionegg] Re: What exactly does anchor mean?
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Wed, 09 Jan 2008 21:38:59 -0800
Hi Britt,
The anchor parameter, as you have seen, determines how a single point
location is used to specify the location of an extended 2D object such
as a piece of text or a rectangle. It only supports the values 'center'
'lowerright' 'lowerleft', 'upperright' 'upperleft' 'left''right'
'bottom' or 'top'.
The interaction of orientation parameter with the anchor parameter is
something I haven't thought about for a long time, but there's an
order-of-operations issue and I can't remember what decision I made.
Unfortunately, the only location where this is fully documented is the
source code itself. Namely VisionEgg.__init__.py after line 457:
http://visionegg.org/trac/browser/trunk/visionegg/VisionEgg/__init__.py#L457
-Andrew
Britt Anderson wrote:
I am new to VisionEgg and was playing with the target.py demo. Instead
of oscillating back and forth I wanted to make the target pivot back and
forth like a windshield wiper or metronome. I thought all I would have
to do was fix the position and vary the orientation parameter with the
target "anchored" at one end, but my target always pivoted about the
center. This made it clear how little I understood about the meaning of
the parameters.
Could someone direct me to where the notion of "anchor" and other
stimuli parameters are more fully explained? The function reference
seems to give the defaults without actually saying much about them.
Is there a way built in visionegg to make the center of an object, for
the purposes of computing transformation effects, something other than
the geometric center? Or is this the type of thing that one typically
writes their own controller function for to reposition a target in a way
that counteracts the rotation? This is not something I need for an
experiment right now, it is just to help me better understand the
stimuli modules and VisionEgg.
Thank you,
Britt Anderson
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] What exactly does anchor mean?
- From: Britt Anderson
Other related posts:
- » [visionegg] What exactly does anchor mean?
- » [visionegg] Re: What exactly does anchor mean?
Could someone direct me to where the notion of "anchor" and other stimuli parameters are more fully explained? The function reference seems to give the defaults without actually saying much about them.
Is there a way built in visionegg to make the center of an object, for the purposes of computing transformation effects, something other than the geometric center? Or is this the type of thing that one typically writes their own controller function for to reposition a target in a way that counteracts the rotation? This is not something I need for an experiment right now, it is just to help me better understand the stimuli modules and VisionEgg.
Thank you, Britt Anderson ====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] What exactly does anchor mean?
- From: Britt Anderson