Author Topic: Optical Illusion with Sinc() ?  (Read 2367 times)

0 Members and 1 Guest are viewing this topic.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Optical Illusion with Sinc() ?
« on: November 12, 2021, 05:24:49 pm »
Playing around with sinc()...

Code: QB64: [Select]
  1. _Title "Does this light turn yellow?" 'b+ 2021-11-12
  2.  
  3. Screen _NewImage(600, 600, 32)
  4. _ScreenMove 350, 60
  5.     Cls
  6.     For r = 0 To 300
  7.         Circle (300, 300), r, _RGB32(i * Sin(r) / r) ' checking out sinc()
  8.     Next
  9.     i = i + 10
  10.     _Display
  11.     _Limit 60
  12.  

Offline _vince

  • Seasoned Forum Regular
  • Posts: 422
Re: Optical Illusion with Sinc() ?
« Reply #1 on: November 12, 2021, 06:22:31 pm »
Monitor needs wiping!

(Answer:  not at all)
yellow.png
* yellow.png (Filesize: 43.41 KB, Dimensions: 600x600, Views: 359)

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Re: Optical Illusion with Sinc() ?
« Reply #2 on: November 13, 2021, 12:08:36 pm »
Well not in a screen shot and not anywhere you focus your eyes at, just around inner rings as it brightens.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
Re: Optical Illusion with Sinc() ?
« Reply #3 on: November 14, 2021, 01:48:32 am »
I stared at that thing for many, many, many moments. Did I see 'yellow'? Sorry. But, then again, the dancing Leprechaun was far too distracting...
Logic is the beginning of wisdom.