TIP: Click on subject to list as thread! ANSI
echo: apple
to: comp.sys.apple2
from: John B. Matthews
date: 2008-09-06 14:48:56
subject: Re: Apple logo in Lores

In article 
,
 limtc  wrote:

> > One problem I'm having trouble with: How do I cause a screen update 
> > inside a loop. For example, the treble loop in "Rod's Color 
> > Pattern" takes so long that the browser says the JavaScript is 
> > broken. Any known alternative to re-factoring the algorithm?

> In JavaScript and ActionScript - all the things drawn will be
> presented as a frame - you will not see the screen update. This is one
> of the biggest issue many Apple II programmers will face as we cannot
> simply create a loop and move x and y and expect to see the graphics
> redrawn.
> 
> I create an example to show how to solve this: check out the output
> and source code for "Demo" in GScript GS. Use loop() to call a
> function, and use a counter variable to act as the loop counter.
> "Duet" and "Random Painter" also uses similar technique.

Ah, I see. Thanks!

-- 
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
--- SBBSecho 2.12-Win32
* Origin: Derby City Gateway (1:2320/100.2008)
SEEN-BY: 10/1 3 34/999 106/1 120/228 123/500 140/1 222/2 226/0 236/150 249/303
SEEN-BY: 250/306 261/20 38 100 1404 1406 1410 1418 266/1413 280/1027 320/119
SEEN-BY: 393/11 396/45 633/260 267 712/848 800/432 801/161 189 2222/700
SEEN-BY: 2320/100 105 200 2905/0
@PATH: 2320/100 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.