fenfire-commits
[Top][All Lists]
Advanced

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

[ff-cvs] libvob/doc/pegboard/animation_api--mudyc peg.rst


From: Matti Katila
Subject: [ff-cvs] libvob/doc/pegboard/animation_api--mudyc peg.rst
Date: Sun, 26 Oct 2003 14:57:19 -0500

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Matti Katila <address@hidden>   03/10/26 14:57:19

Modified files:
        doc/pegboard/animation_api--mudyc: peg.rst 

Log message:
        clean + more doc

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/doc/pegboard/animation_api--mudyc/peg.rst.diff?tr1=1.20&tr2=1.21&r1=text&r2=text

Patches:
Index: libvob/doc/pegboard/animation_api--mudyc/peg.rst
diff -u libvob/doc/pegboard/animation_api--mudyc/peg.rst:1.20 
libvob/doc/pegboard/animation_api--mudyc/peg.rst:1.21
--- libvob/doc/pegboard/animation_api--mudyc/peg.rst:1.20       Sun Oct 26 
14:25:35 2003
+++ libvob/doc/pegboard/animation_api--mudyc/peg.rst    Sun Oct 26 14:57:18 2003
@@ -5,8 +5,8 @@
 
 :Authors:  mudyc
 :Date-Created: 2003-09-27
-:Last-Modified: $Date: 2003/10/26 19:25:35 $
-:Revision: $Revision: 1.20 $
+:Last-Modified: $Date: 2003/10/26 19:57:18 $
+:Revision: $Revision: 1.21 $
 :Status:   Current
 :Stakeholders: mudyc, tjl, benja
 :Scope:    Minor
@@ -191,7 +191,9 @@
      *          self.windowAnimation.animate()
      * </pre>
      * </li><li>
-     * Example: When you want to pop a red box from left to right:
+     * Example: When you want to pop a red box from left to right.
+     *  The point of example is to use creation of new scene without
+     *  animation:
      * <pre>
      *  class Scene:
      *      """ Example scene to pop red box from left to right 
@@ -212,11 +214,13 @@
      *          vs.put(vob.vobs.RectBgVob(java.awt.Color.red), cs)
      *      def key(self, key):
      *          self.keyHit = 1 - self.keyHit
-     *          self.windowAnimation.animate()
+     *          self.windowAnimation.switchVS()
      * </pre>
      * </li><li>
      * Example: Another way to pop a red box from left to right.
-     * This way is like ten times faster than creating a new scene:
+     *  This way is like ten times faster than previous example 
+     *  where we created a new scene. In this example we set
+     *  coordinate system parameters instead:
      * <pre>
      *  class Scene:
      *      """ Example scene to pop red box from left to right 
@@ -248,12 +252,12 @@
      * </li><li>
      *  Example: Quite a difficult example where we start to drag 
      *  red box around the scene that may end to be yellow one.
-     *  Point of the example is to use both rerendering of one 
-     *  scene and switching of scene.
+     *  Point of the example is to use both (fast) rerendering of one 
+     *  scene and switch scene when it's unavoidable.
      * <p>
      *  The main problem in example is that when handling mouse event you
-     *  don't know what is it in the current window: a yellow or red
-     *  box. We try to guess *the position of the moon* from previous 
+     *  don't know what is drawn in the current window: a yellow or red
+     *  box? We try to guess *the position of the moon* from previous 
      *  event if we even have a one.
      *
      * <pre>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]