home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4907 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.2 KB

  1. 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
  2. From: skr@castle.ed.ac.uk (S Rushton)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Displaying Images for Short Periods of Time
  5. Message-ID: <24998@castle.ed.ac.uk>
  6. Date: 19 Aug 92 16:48:51 GMT
  7. Organization: Edinburgh University
  8. Lines: 25
  9.  
  10. i"ve a problem...
  11.  
  12. i"m writing an experimental rig and need to display a stimulus
  13. on the screen for a tightly controlled period of time.  i want
  14. to write the program in turbo pascal on a 386 with a vga card.
  15. what i normally do (this is the third machine i"ve had to do this
  16. for) is: 
  17. 1) set colour x rgb values to same as background colour
  18. 2) draw the shape or whatever in colour x
  19. 3) change the address of the screen memory (switch out the
  20. current screen and switch in another)
  21. 4) set colour x rgb values to 255,255,255 or whatever appropriate
  22. 5) wait for flyback
  23. 6) switch predrawn screen back in
  24. 7) start timer
  25. 8) wait till time period elapsed
  26. 9) switch out stimulus screen (and maybe switch in different
  27. mask screen, also predrawn)
  28.  
  29. how do i do something equivalent on a 386/vga?  anyone got any
  30. references or suggestions?
  31.  
  32. cheers
  33.  
  34. simon rushton
  35.