Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ponzo Illusion errors #4

Open
cratlagh opened this issue Oct 5, 2020 · 1 comment
Open

Ponzo Illusion errors #4

cratlagh opened this issue Oct 5, 2020 · 1 comment
Assignees

Comments

@cratlagh
Copy link
Collaborator

cratlagh commented Oct 5, 2020

I considered raising this as a bug but not sure it should be classed as one since it makes sense that it is happening.

The Ponzo illusion: anything > 25 for the 'illusion_strength' parameter sees either the top target line draw over the flanker contextual lines, or as the number increases further, sees the contextual lines dip below the top target line. It would be cool if the flanker lines moved up the y-axis (or the target lines moved down the y-axis) to accommodate these extreme values.

I'd imagine it would be a relatively easy adjustment to make?

Additionally, when the 'illusion_strength' value is set to '90' it returns an error whereas >90 does not.

This is the error t returns: 'SystemError: <method 'draw_lines' of 'ImagingDraw' objects> returned a result with an error set'

Brilliant job all round with this package. Keep up the good work!

@DominiqueMakowski DominiqueMakowski changed the title Ponzo Illusion Ponzo Illusion errors Oct 5, 2020
@DominiqueMakowski
Copy link
Member

The Ponzo illusion: anything > 25 for the 'illusion_strength' parameter sees either the top target line draw over the flanker contextual lines

You mean like to keep the target lines "between" the contextual lines? We could have an argument like adjust_height that would automatically put the horizontal lines at the optimal position (there is something similar implemented in delboeuf). It would be a bit of a math headache to figure out the formula to adjust the height based on the size but it's doable ^^

when the 'illusion_strength' value is set to '90' it returns an error

that's weird, my gut feeling would be it that it has something to do with the transformations to radians or something... need to trace down the error to find its cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants