Chapter 15.3.3. Effect Options
All the visual effects take an “options†parameter, which is an object that provides, you guessed it, options for the effects. There are a number of standard options, and their default values can be found in MochiKit.Visual.DefaultOptions.
The standard options and their default values are listed in Table 15.3.
Option | Default Value | Description |
---|---|---|
transition | MochiKit.Visual.Transitions.sinoidal | This is how the values for the transitions should be computed. Other transitions to try out in MochiKit.Visual.Transitions: flicker and pulse. |
duration | 1.0 (seconds) | Length of time for which the effect will run. |
fps | 25.0 | This is how many frames per second the effect should use. In other words, how ... |
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.