
r/illusionporn

Giant horse statue on trailer goes from facing forward, to facing backward, to facing forward again
AfterPy: A Python package to generate afterimage illusions
Hello all,
I am pleased to announce the release of a new Python package called "AfterPy", in which users are able to generate afterimage illusion videos!
An afterimage is a visual illusion in which relatively strong/prolonged exposure to an initial image transiently affects the perception of colour in a subsequent image. This is a natural phenomenon observed across everyday life: for example, when the bright flash of a camera is directed towards one’s eyes, the individual may then briefly perceive a dark patch in their visual field.
Included in this package are four different functions to elicit the afterimage effect. Below is an example of a negative afterimage video from the package, whereby an image is presented for 15 seconds with an inverted colour spectrum before transitioning to a greyscale version of that same image for an additional 5 seconds. To experience the afterimage effect, you should stare at the fixation cross on the inverted-colour image and you will see its "real" image colours in the greyscale version!
You can find AfterPy on GitHub here: https://github.com/OliverACollins/AfterPy
PyGrid: A Python package to generate grid illusions
Hello all,
I have recently released a Python package called "PyGrid", allowing users to generate grid illusions!
The rationale behind creating this package was to provide an easy-to-use tool for developing simple, customisable grid illusions, which, in theory, could be used in psychological experiments. Five different illusions are included which can be manipulated according to numerous parameters, influencing elements such as the number of cells in the grid, the width of the grid lines, and the distortion applied to the grid lines.
Below is an example of an illusion included in the package: Ninio's extinction illusion. This illusion comprises 12 black dots laid at the intersections of the grey grid lines. You may struggle to view all 12 dots at once!
You can find PyGrid on GitHub here: https://github.com/OliverACollins/PyGrid