[visionegg] centering pictures
- From: Christoph Lehmann <lehmann@xxxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Thu, 05 Dec 2002 10:58:43 +0100
now, with
x = screen.size[0]/2 - texture.orig.size[0]/2
y = screen.size[1]/2 - texture.orig.size[1]/2
# Load the texture to OpenGL, prepare for display
stimulus = TextureStimulus(texture = texture,
size = texture.orig.size[0),
lowerleft=(x,y))
it works fine
just had to put .orig to texture.size[0]
christoph
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] Re: congratulation: max_priority mode WORKS
- From: Andrew Straw
- [visionegg] Re: congratulation: max_priority mode WORKS
- From: Christoph Lehmann
Other related posts:
- » [visionegg] centering pictures
- [visionegg] Re: congratulation: max_priority mode WORKS
- From: Andrew Straw
- [visionegg] Re: congratulation: max_priority mode WORKS
- From: Christoph Lehmann