Pyllusion has been published
Pyllusion, the software for creating illusions in Python, has been published.
![](/post/2021-11-30-pyllusion/featured_hu82bb40e7aaa5e6df514f03c4a93a6e4f_20349_eaf40e3e4a1c80d7958040f74172b04c.webp)
Pyllusion has been published!
Pyllusion is a package for Python that implements a systematic way to manipulate and generate illusions using a set of parameters.
For instance, the famous Müller-Lyer illusion below, which causes the observer to perceive the 2 segments of being different lengths depending on the shape of the arrows, can be generated wit the following lines of code:
mullerlyer = pyllusion.MullerLyer(illusion_strength=30)
mullerlyer.to_image()
To understand more about the parametric approach being implemented in the Pyllusion package, we recommend reading our paper, which includes a hands-on example on how to generate some classic illusions (such as the Delbeouf Illusion), and discusses how Pyllusion contributes to address conceptual and methodological issues in illusion science.
import pyllusion
delboeuf = pyllusion.Delboeuf(illusion_strength=3)
delboeuf.to_image()
Don’t forget to keep a look out for our repo for more exciting open-source projects!