Just for fun: color illusion

Post your FreeBASIC source, examples, tips and tricks here. Please don’t post code without including an explanation.
Post Reply
angros47
Posts: 2326
Joined: Jun 21, 2005 19:04

Just for fun: color illusion

Post by angros47 »

Run this program, and when it displays a circle, stare at the cross in the middle. Don't move your eyes away from it. When the screen will become white, for a moment you will see a yellow circle

Code: Select all

screenres 800,600,32


line (0,0)-(800,600),rgb(255,255,0),bf
circle (400,300),150,rgb(0,0,255),,,,f

color rgb(0,0,0)
line (400,280)-(400,320)
line (380,300)-(420,300)

sleep 20000
line (0,0)-(800,600),rgb(255,255,255),bf

inkey
var x=input(1)

SamL
Posts: 58
Joined: Nov 23, 2019 17:30
Location: Minnesota

Re: Just for fun: color illusion

Post by SamL »

nice
Post Reply