PDA

View Full Version : Reading screen color



El Paisa
10-12-2006, 02:57 AM
I wonder if there is a way to simulate the Screen Mode of Quick Basic.

SCREEN(x,y,color flag).

The ability to flyover with the mouse cursor over a region and detect the color at that location.

Mike Green
10-12-2006, 03:31 AM
The information is available in memory, but there are not routines to extract it conveniently. Are you using one of the graphics drivers or a text-only driver and for which device (VGA hi/lores or TV)?

Beau Schwabe
10-12-2006, 07:10 AM
For the VGA graphics I have posted, there is a POINT(x,y) function that will return the pixel color. Since there are 2 colors it will only return a "0" or a "1".

BTW) Quick Basic uses POINT(x,y) for this also.


http://forums.parallax.com/showthread.php?p=606957

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe (mailto:bschwabe@parallax.com)

IC Layout Engineer
Parallax, Inc.

El Paisa
10-12-2006, 09:16 AM
Beau,

You are right,

POINT(x,y) and POINT(color) does the same thing.

Mike,

For now I am using the TV mode.

Perhaps I have to wait for the Hydra book , I am sure Andre covers this.