home *** CD-ROM | disk | FTP | other *** search
- Path: god.bel.alcatel.be!nlev00!barnhoorn
- From: barnhoorn@nlev00 ()
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Flashing the screen
- Date: 26 Jan 1996 08:34:22 GMT
- Organization: Alcatel Bell
- Distribution: world
- Message-ID: <4ea3me$mjg@btmpjg.god.bel.alcatel.be>
- References: <Pine.HPP.3.91-941213.960125141358.19004C-100000@pahang.dur.ac.uk>
- Reply-To: barnhoorn@nlev00 ()
- NNTP-Posting-Host: nles61.ats.nld.alcatel.nl
- X-Newsreader: mxrn 6.18-10
-
-
- In article <Pine.HPP.3.91-941213.960125141358.19004C-100000@pahang.dur.ac.uk>, Nick Pratt <N.B.Pratt@durham.ac.uk> writes:
- |>
- |> Could anyone send me a short C-prog (for SAS C) that flashes a screen
- |> continously (strobing basically) using a predefined colour and flah rate?
- |>
-
- Yes, I could. Try something like this:
-
- waitflashrate(int rate)
- {
- while (rate) {
- WaitTOF();
- rate--;
- }
- }
-
- main() {
- openscreen();
- while (!break) {
- setcolor(0,predefined_colour_dark);
- wait_flash_rate(rate);
- setcolor(0,predefined_colour_bright);
- wait_flash_rate(rate);
- checkbreak();
- }
- closescreen();
- }
-
- Now, you only need to modify this code in something like C, or E,
- or whatever you want to use.
-
- Jaco.
-