[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple logo in Lores
In article
<b0ef3f36-97f4-456b-a766-c8ed97516a4d@i24g2000prf.googlegroups.com>,
limtc <thyechean@gmail.com> 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