import numpy as np
import psychopy
from psychopy import visual, core, event, monitors, sound, clock
trials, moves, counter = 0, 0, 0
key = []
# Window
window = visual.Window(
size=(1024, 768), fullscr=True, screen=0,
winType='pyglet', allowGUI=False, allowStencil=False,
monitor='testMonitor', color=[0,0,0], colorSpace='rgb',
blendMode='avg', useFBO=True,
units='cm')
# Cross
cross = visual.ShapeStim(
window, pos = (0, 0), size = 3, closeShape = True,
vertices = [[2, 0], [-2, 0], [0, 0], [0, 2], [0, -2]],
lineColor='white', lineColorSpace='rgb')
# Dot
dotFix = visual.DotStim(
win = window, nDots = 1, fieldPos = (0,0),
dotSize = 20, color = (-1, -1, -1), dotLife = 0,
coherence = 0, speed = 0, fieldSize = (0,0))
dotFix.draw()
cross.draw()
window.flip()
core.wait(5.0)
On running, the cross origin is slightly shifted wrt to the dot origin even though the position of both are set at (0,0). Is there a reason for this?