I’m trying to overlay a series of vertical and horizontal bars (which erode over time), over an image, but have recently run into an issue. I was initially only displaying the eroding vertical bars, which was fine; however, when I display the eroding horizontal bars, their erosion appears jagged and uneven across those bars. The bars are stored as a
visual.ElementArrayStim object. I may be wrong, but I’m wondering if the jagged horizontal bar display is due to drawing the image object prior to the bars and
win.flip()? I tried
image.setAutoDraw(True), but that seems to prevent me from being able to overlay the bars. This is a rough sketch of how I’m currently display things:
image.draw() bars.draw() win.flip()
Is there a way to resolve this issue, or am I thinking through the problem incorrectly?
Thanks for the help!