QB64.org Forum

Active Forums => Programs => Topic started by: bplus on November 12, 2021, 05:24:49 pm

Title: Optical Illusion with Sinc() ?
Post by: bplus 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.  
Title: Re: Optical Illusion with Sinc() ?
Post by: _vince on November 12, 2021, 06:22:31 pm
Monitor needs wiping!

(Answer:  not at all)
Title: Re: Optical Illusion with Sinc() ?
Post by: bplus 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.
Title: Re: Optical Illusion with Sinc() ?
Post by: johnno56 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...