r/javascript • u/rturkek • Jul 01 '18
I found an Optical Illusion Clock, drawn on an html canvas.
https://htmlpen.com/george/illusion-clock/22
u/ferrx Jul 01 '18
How the HELL does this work, brain?! If you gloss over it and just look at it, there doesn't seem to be any breaks or anything that 'create' the numbers. Yet, somehow I can see an outline of numbers if I focus on them.
Partly, I think knowing ahead of time that it's a clock, and that there should be numbers, I'm looking for things to form the shape of numbers. This is especially so after seeing the number revealed via the toggle so that my brain could register the "font" of the numbers.
6
u/fakehalo Jul 01 '18
Weird, I see it as a font of squares/blocks that are opposite diagonals to the background. I have to force myself to not notice to enjoy the intended effect.
5
Jul 01 '18
Neat, but how is it an optical illusion?
6
u/rturkek Jul 01 '18 edited Jul 01 '18
Looked like a maze to me first. Which is an illusion. But I understand, it might not be an "optical" illusion for which I'm not sure what is the exact definition for "optical" illusion.
-15
Jul 01 '18
That does not in the slightest mean that it's an optical illusion. It's still cool though. Just not as advertised.
15
u/rturkek Jul 01 '18
I'm sorry. Poor english from my side. I'm not a native speaker. Doing my best to write correctly.
20
u/i_post_gibberish Jul 01 '18
It actually is an optical illusion. He’s just being a pedantic asshole because Reddit. Specifically, it falls into the category of figure-ground illusions.
7
u/roachiepoopoo Jul 01 '18
You're missing the illusion. Try relaxing your eyes. The stereoscopic effect is similar to the 3D images that can only be seen when your eyes are crossed, or else when you focus on a point much farther away. Then the time appears as ordinary numerals.
2
Jul 01 '18
Oh, am I not supposed to be able to make out the numbers? It’s a little hard to make out the numbers with all the visual noise around, but I’m not having to cross my eyes or anything to see them 🤷🏼♂️
1
u/legato_gelato Jul 01 '18
No, he is saying it is similar to stereograms in their appearance. I see what he means - it feels a bit like the numbers are at a different z-index than the rest, which is what stereograms also look like..
3
3
u/osoese Jul 02 '18
Came to see a picasso salvidore dali clock that worked and written in js and rubbing eyes now instead but pretty cool none the less. I had to click on the thing to eliminate the background to see it the first time.
2
u/kinxiel Jul 02 '18
Pretty cool but probably wouldn’t use this if I need to check the time before my next meeting :).
3
2
2
u/rook2pawn Jul 02 '18 edited Jul 02 '18
it's in 24 hour time mode so if you are trying to see the illusion, first convert your time to 24 hour time.
1
u/bart2019 Jul 02 '18
A clock is intended to be read in a blink of an eye. So this clock totally misses the point.
The effect is pretty dawn cool, though.
1
1
u/ErixErns Jul 02 '18
This is an amazing project. Do you know about p5.js? It will help you with animation and html canvas stuff. I usually do all my animations in that only.
1
1
-1
0
u/sarkie Jul 01 '18
The way i learnt years ago
Cross your eyes.
Refocus slowly
Then just before it normally focuses, you can see it.
Works for me anyway
-1
161
u/binky422 Jul 01 '18
Thanks! I hate it.