1. Graphic timing
- Posted by Paul Kerslake <paulk at UNISERVE.COM>
Sep 06, 2000
-
Last edited Sep 07, 2000
------=_NextPart_000_000B_01C01844.11B521E0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I've slowly (<-- key word) been working my way up to graphics handling. =
I tried before, but there was too much I didn't understand. Now, I'm =
working with the basics, but something is bothering me. Euphoria is fast =
and therefore displays graphics fast. Is there a way to slow things =
down? Here's what I mean:
include graphics.e=20
draw_line(1,{{1,1},{80,0}})
draw_line(1,{{1,1},{80,12}})
draw_line(1,{{1,1},{80,24}})
draw_line(1,{{1,1},{80,36}})
draw_line(1,{{1,1},{80,48}})
draw_line(1,{{1,1},{80,72}})
draw_line(1,{{1,1},{80,94}})
=20
I'm displaying different lines but, they are displayed too quickly. Can =
I have a half second (or more/less) interval between them?
-Thanks=20
-Thomas
------=_NextPart_000_000B_01C01844.11B521E0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I've slowly (<-- key word) been =
working my way=20
up to graphics handling. I tried before, but there was too much I =
didn't=20
understand. Now, I'm working with the basics, but something is bothering =
me.=20
Euphoria is fast and therefore displays graphics fast. Is there a way to =
slow=20
things down? Here's what I mean:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>include graphics.e </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =
draw_line(1,{{1,1},{80,0}})<BR> =20
draw_line(1,{{1,1},{80,12}})<BR> =
draw_line(1,{{1,1},{80,24}})<BR> =20
draw_line(1,{{1,1},{80,36}})<BR> =
draw_line(1,{{1,1},{80,48}})<BR> =20
draw_line(1,{{1,1},{80,72}})<BR> =
draw_line(1,{{1,1},{80,94}})<BR> =20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm displaying different lines but, =
they are=20
displayed too quickly. Can I have a half second (or more/less) interval =
between=20
them?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Thanks </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Thomas</FONT></DIV>
------=_NextPart_000_000B_01C01844.11B521E0--
2. Re: Graphic timing
------=_NextPart_000_0024_01C018DD.C5FC76F0
charset="iso-8859-1"
Hi Thomas,
try including this little wait routine...
-------------------------------------
procedure fWait(atom pInterval)
-------------------------------------
-- This procedure just waits for the number of
-- seconds supplied in the parameter.
atom lEndTime
lEndTime = time() + pInterval
while lEndTime > time() do
end while
end procedure
include graphics.e
draw_line(1,{{1,1},{80,0}})
fWait(0.25)
draw_line(1,{{1,1},{80,12}})
fWait(0.25)
draw_line(1,{{1,1},{80,24}})
fWait(0.25)
draw_line(1,{{1,1},{80,36}})
fWait(0.25)
draw_line(1,{{1,1},{80,48}})
fWait(0.25)
draw_line(1,{{1,1},{80,72}})
fWait(0.25)
draw_line(1,{{1,1},{80,94}})
fWait(0.25)
-----
cheers,
Derek Parnell
-----Original Message-----
From: Derek Parnell [mailto:dparnell at bigpond.net.au]
Sent: Thursday, September 07, 2000 2:54 PM
To: derekp at solace.com.au
Subject: Graphic timing
Hello,
I've slowly (<-- key word) been working my way up to graphics handling. I
tried before, but there was too much I didn't understand. Now, I'm working
with the basics, but something is bothering me. Euphoria is fast and
therefore displays graphics fast. Is there a way to slow things down? Here's
what I mean:
include graphics.e
draw_line(1,{{1,1},{80,0}})
draw_line(1,{{1,1},{80,12}})
draw_line(1,{{1,1},{80,24}})
draw_line(1,{{1,1},{80,36}})
draw_line(1,{{1,1},{80,48}})
draw_line(1,{{1,1},{80,72}})
draw_line(1,{{1,1},{80,94}})
I'm displaying different lines but, they are displayed too quickly. Can I
have a half second (or more/less) interval between them?
-Thanks
-Thomas
------=_NextPart_000_0024_01C018DD.C5FC76F0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3105.105" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D327300804-07092000>Hi=20
Thomas,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D327300804-07092000>try=20
including this little wait routine...</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
<DIV><STRONG><FONT face=3D"Courier New"=20
size=3D2>-------------------------------------<BR>procedure fWait(atom=20
pInterval)<BR>-------------------------------------<BR>-- This procedure =
just=20
waits for the number of<BR>-- seconds supplied in the=20
parameter.</FONT></STRONG></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><STRONG>atom=20
bsp; =20
<BR> lEndTime =3D time() +=20
pInterval<BR> while lEndTime > time()=20
do<BR> end while<BR>end=20
procedure</STRONG></FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>include graphics.e =
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2> =20
draw_line(1,{{1,1},{80,0}})</FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2> <SPAN=20
draw_line(1,{{1,1},{80,12}})<BR><FONT color=3D#0000ff face=3DArial=20
size=3D2> <SPAN=20
draw_line(1,{{1,1},{80,24}})<BR><FONT color=3D#0000ff face=3DArial=20
size=3D2> <SPAN=20
draw_line(1,{{1,1},{80,36}})<BR><FONT color=3D#0000ff face=3DArial=20
size=3D2> <SPAN=20
draw_line(1,{{1,1},{80,48}})<BR><FONT color=3D#0000ff face=3DArial=20
size=3D2> <SPAN=20
draw_line(1,{{1,1},{80,72}})<BR><FONT color=3D#0000ff face=3DArial=20
size=3D2> <SPAN=20
draw_line(1,{{1,1},{80,94}})<BR><FONT color=3D#0000ff face=3DArial=20
size=3D2> <SPAN=20
</FONT></DIV></DIV>
<P><FONT size=3D2>-----<BR>cheers,<BR>Derek Parnell<BR></FONT></P>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
<DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
size=3D2>-----Original Message-----<BR><B>From:</B> Derek Parnell=20
[mailto:dparnell at bigpond.net.au]<BR><B>Sent:</B> Thursday, September =
07, 2000=20
2:54 PM<BR><B>To:</B> derekp at solace.com.au<BR><B>Subject:</B> Graphic=20
timing<BR><BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I've slowly (<-- key word) been =
working my way=20
up to graphics handling. I tried before, but there was too much =
I didn't=20
understand. Now, I'm working with the basics, but something is =
bothering me.=20
Euphoria is fast and therefore displays graphics fast. Is there a way =
to slow=20
things down? Here's what I mean:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>include graphics.e </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =
draw_line(1,{{1,1},{80,0}})<BR> =20
draw_line(1,{{1,1},{80,12}})<BR> =
draw_line(1,{{1,1},{80,24}})<BR> =20
draw_line(1,{{1,1},{80,36}})<BR> =
draw_line(1,{{1,1},{80,48}})<BR> =20
draw_line(1,{{1,1},{80,72}})<BR> =
draw_line(1,{{1,1},{80,94}})<BR> =20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm displaying different lines but, =
they are=20
displayed too quickly. Can I have a half second (or more/less) =
interval=20
between them?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Thanks </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Thomas</FONT></DIV>
------=_NextPart_000_0024_01C018DD.C5FC76F0--