Monday, May 14, 2007

How To Catch Libra Males Eye



bitpantalla int (int x, int y) {

getpixel return (x, y);}



Algorithm:

For each scan line (y = 0 ,..., YMAX) to

1. initialize x = 0
2. while (bitpantalla <> border color) x = x +1

3. xinicio = x
4. while (bitpantalla <> border color) x = x +1

5. xfin = x
6. line (xinicio, and xfin, and color)



Source.

http://www.inf.unitru.edu.pe/ ~ vncc/documentos/clases/cg1-u31.pdf

0 comments:

Post a Comment