Let movie = new ChemDoodle.MovieCanvas3D('movie', 300, 300) ExamplesĪ MovieCanvas3D component showing conformations of cyclohexane: For convenience, the animation can be toggled by the user by double-clicking on the canvas. When everything is ready, the AnimatorCanvas.startAnimation() function will start the movie while the AnimatorCanvas.stopAnimation() function will stop it. This will center the animation in the component. You should preload the first frame using the _Canvas.loadMolecule() function on the first Molecule in the molecules array, after the array is fully loaded. By default, the play mode is PLAY_SPRING. Hese variables are accessed from the MovieCanvas3D class, and will be defined when set to the ayMode variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |