[Grace-core] Fixes to objectdraw and text

Kim Bruce kim at cs.pomona.edu
Sun Jul 6 11:05:31 PDT 2014


Hi,

I've updated the text and all the examples on line to the new naming scheme.  I have also made some fairly major simplifications of the Animation.grace module.  It is now a stateless collection of methods.  The simplification resolved some problems I was having with animations starting to get flaky after running a while.  It did result in my changing the methods, they now look like:

   while{cond} pausing (pauseTime) do {
       stats
    }

and 

   while{cond} pausing (pauseTime) do {
       stats
    } finally {
        finalStuff
    }

Notice that pauseTime is resolved at the time of the method request so that the delays are constant.  This makes it easier to implement using the Javascript primitives.  I have a variant that includes "pauseVarying" instead of "pause" that allows variable pauses.  I'm still debugging some aspects of the module (for loops), but everything in the text should be fine.

Two labs are out there now.  I expect to have two more by noon today (your time).  Please let me know if you have any problems.

My apologies for not being able to get these out earlier, but problems with animation slowed me down.

Kim

P.S.  Thanks to Michael for his conversion tool.  While other conflicts resulted, it saved me an enormous amount of time.




More information about the Grace-core mailing list