[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple logo in Lores



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.

On 9月6日, 下午10时58分, "John B. Matthews" <nos...@nospam.invalid> wrote:

> One of my favorites: LoResHiJinks <http://www.turbo-2.com/apple/#dl>
>
> 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?
>
> Thanks,