I want to make something like a drawing with frame difference moving detection. For example if I have white pixels in movement I don’t want to clear it after the moving stops, I want to leaving a trace.
I think it might help to clarify what you’re trying to do. Motion detection is not the same thing as not clearing the display. check out the jit.op absdiff function and the jit.slide object. They should take care of each.