home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!edcastle!skr
- From: skr@castle.ed.ac.uk (S Rushton)
- Newsgroups: comp.lang.pascal
- Subject: Displaying Images for Short Periods of Time
- Message-ID: <24998@castle.ed.ac.uk>
- Date: 19 Aug 92 16:48:51 GMT
- Organization: Edinburgh University
- Lines: 25
-
- i"ve a problem...
-
- i"m writing an experimental rig and need to display a stimulus
- on the screen for a tightly controlled period of time. i want
- to write the program in turbo pascal on a 386 with a vga card.
- what i normally do (this is the third machine i"ve had to do this
- for) is:
- 1) set colour x rgb values to same as background colour
- 2) draw the shape or whatever in colour x
- 3) change the address of the screen memory (switch out the
- current screen and switch in another)
- 4) set colour x rgb values to 255,255,255 or whatever appropriate
- 5) wait for flyback
- 6) switch predrawn screen back in
- 7) start timer
- 8) wait till time period elapsed
- 9) switch out stimulus screen (and maybe switch in different
- mask screen, also predrawn)
-
- how do i do something equivalent on a 386/vga? anyone got any
- references or suggestions?
-
- cheers
-
- simon rushton
-