Have there been any further suggestions for how to draw several anti-aliased lines (like psychtoolbox’s DrawLines) since this discussion: https://groups.google.com/forum/#!searchin/psychopy-users/drawlines|sort:relevance/psychopy-users/77zgZC_wJhw/RGaDriQqcsUJ ?
This is my current attempt:
visual.ElementArrayStim(win, nElements=nLines, elementTex='sqr', elementMask='None', sizes=np.c_[np.ones(nLines) * lineWidthDeg, np.ones(nLines) * lineLengthDeg], oris=oris, xys=xys, colors=colors)
nLines is just a number of lines and lineWidthDeg is the width of the lines in degrees, lineLengthDeg is the line length in degrees.
With this I still get aliasing even though interpolate=True is the default.
Perhaps a simpler question is how to get just a single anti-aliased line using gratingStim, i.e.
visual.GratingStim(win, tex='sqr', mask='None', size=[lineWidthDeg, lineLengthDeg], interpolate=True)
Or alternately, if someone knows a way to do this with Line, that would work to!
Thank you for all your help!