I’m trying to use imagechops.offset to do basic scrolling of a foreground image. The only problem is, my professor doesn’t want the scrolled data to wrap (data ‘pushed’ off-screen shouldn’t come back on the other side).
Is there a way to do this with imagechops, or should I go ahead and use array operations?
Can’t be done with ImageChops alone, but you don’t need array operations either (not in your code). You can combine
ImageChops.offsetwithpasteas in:This example assumes you want to fill the wrapped area with a certain color.