This isn't anything I NEED to know, I'm just about curious about it. I made a small program which strobes black and white when you press the space bar.
I was fiddling about with it, and got to thinking about how would I work out how many hertz it was strobing by? I have my monitor set to 85hz, and I set the frame timer to 10 frames per second. Would this be about 8.5hz, or am I missing something? If so, how would I figure out how many hertz it is strobing by?
Graphics 800,600,0,0 SetBuffer BackBuffer() a=True fps=CreateTimer(10) While Not KeyDown(1) WaitTimer(fps) Cls If KeyDown(57) For b=0 To 200 If a=True ClsColor(255,255,255) a=False Elseif a=False ClsColor(0,0,0) a=True EndIf Next EndIf Flip Wend
I was fiddling about with it, and got to thinking about how would I work out how many hertz it was strobing by? I have my monitor set to 85hz, and I set the frame timer to 10 frames per second. Would this be about 8.5hz, or am I missing something? If so, how would I figure out how many hertz it is strobing by?