Algorythm needed for fading out windows
William T. Dedula
tidedu at mars.lerc.nasa.gov
Fri Mar 1 01:02:41 AEST 1991
Hello All;
I am currently working on a "C" program which uses video
windows (of various sizes) which seem to fade in and out.
I need help in finding the right algorythm to do the job.
Basically, I need to access a matrix of pixels within a
video window at random BUT I only want to access each pixel
ONE time and I want the program to exit when all pixels within
the window have been addressed. A true random number generator
won't work since there's an excellent chance many pixels will be
accessed more than one time and I'll have no idea how long
it would take to assure that all have been accessed.
Although I have seen ways of doing this using tables in memory
or similar concepts ... I figure there must be a mathematical
function which can spit out the numbers quickly, and easily.
Does anyone know if such a function exists and could you provide
me with as much information as you can on it ???
Keep in mind that this routine must be able to handle any size of
video window.
video window.
W. Tim Dedula Internet:
N.A.S.A. Lewis Research Center tdedula at nasamail.nasa.gov
Mail Stop 77-3 tidedu at mars.lerc.nasa.gov
21000 BrookPark Road aa252 at cleveland.freenet.edu
Cleveland, Ohio 44135
Phone (216) 433-3668
The National Aeronautics and Space Administration: Science and
Technology ... for the Benefit of ALL Mankind !!!
More information about the Comp.lang.c
mailing list