Shop OBEX P1 Docs P2 Docs Learn Events
Reading screen color — Parallax Forums

Reading screen color

El PaisaEl Paisa Posts: 375
edited 2006-10-12 01:16 in Propeller 1
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.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-10-11 19:31
    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 SchwabeBeau Schwabe Posts: 6,568
    edited 2006-10-11 23:10
    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

    IC Layout Engineer
    Parallax, Inc.
  • El PaisaEl Paisa Posts: 375
    edited 2006-10-12 01:16
    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.
Sign In or Register to comment.