Skip to content

Commit

Permalink
asahi illusion
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes committed Jun 18, 2023
1 parent 61d09f1 commit b37e408
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/explanations of illusions.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,15 @@ The animation is inspired by a tweet by [twitter/Gavin Buckingham:](https://twit
Additionally, The code uses the p5.js library to create the animation and allows the user to customize their viewing experience by adjusting various parameters. The code generates squares on the canvas and uses a loop to update the positions of the squares, creating the illusion of rotation.
You can adjust the speed of the animation with a built-in frame rate, choose colors for the rotation square and background.

## 39-Asahi Illusion

[try live demo!](https://altunenes.github.io/sorceress/asahi.html)

I actually coded this illusion by accident, while coding a fractal in shadertoy. It's actually an illusion made with the GLSL language. You can reach here [shadertoy](https://www.shadertoy.com/view/DsfyRX)

It’s a cool optical illusion that makes a white center look brighter than it really is by surrounding it with yellow and black petals. The petals change their size and orientation over time, creating different levels of contrast and illumination. Watch how the central white area seems to change its brightness as the petals move. This illusion tricks our eyes and brains into perceiving more light than there is. Even rats fall for it [Vasilev et al., 2023](https://academic.oup.com/cercor/article/33/12/7952/7084649?login=false)

See more about the illusion [Suzuki et al., 2019](https://www.sciencedirect.com/science/article/pii/S0001691819300083); [Laeng et al., 2012](https://www.pnas.org/doi/abs/10.1073/pnas.1118298109)


### REFERENCES
Expand All @@ -540,6 +549,9 @@ Culham, J.C., Danckert, S.L., Souza, J.F.X.D. *et al.* Visually guided grasping

Dakin S. C. and Bex P. J. 2003 Natural image statistics mediate brightness ‘filling in’**Proc. R. Soc. Lond. B.**270**2341–2348 http://doi.org/10.1098/rspb.2003.2528

Dmitrii Vasilev and others, Brightness illusions evoke pupil constriction preceded by a primary visual cortex response in rats, Cerebral Cortex, Volume 33, Issue 12, 15 June 2023, Pages 7952–7959, https://doi.org/10.1093/cercor/bhad090


Gregory RL, Heard P (1979) Border locking and the café wall illusion. Perception 8(4):365–380

Haffenden, A. M. & Goodale, M. A. (1998) The effect of pictorial illusion on prehension and perception. Journal of Cognitive Neuroscience 10(1):122–36
Expand Down Expand Up @@ -568,4 +580,7 @@ White M (1979) A new effect of pattern on perceived lightness. Perception 8:413

Von Bekesy G. (1968) Mach- and Hering-type inhibition invision. Vision Res. 8, 1483-1499.

Y. Suzuki, T. Minami, B. Laeng, and S. Nakauchi, "Colorful glares: Effects of colors on brightness illusions measured with pupillometry," Acta Psychologica, vol. 198, p. 102882, Jul. 2019.


Zeki S, Watson JD, Frackowiak RS. Going beyond the information given: the relation of illusory visual motion to brain activity. Proc Biol Sci. 1993 Jun 22;252(1335):215-22. doi: 10.1098/rspb.1993.0068. PMID: 8394582.
2 changes: 1 addition & 1 deletion docs/jsanimations.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Finished animations :

[colour adaptation](https://altunenes.github.io/sorceress/cafter.html)

[ashai GLSL/shader code](https://altunenes.github.io/sorceress/ashai.html)
[ashai GLSL/shader code](https://altunenes.github.io/sorceress/asahi.html)
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nav:
- eeg: crazyeeg.html
- phi: phi.html
- coloradapt: cafter.html
- asahi : asahi.html
theme:
logo: assets/sitelogo.png
name: material
Expand Down

0 comments on commit b37e408

Please sign in to comment.