/[escript]/trunk/pyvisi/py_src/examples/scene.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/examples/scene.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (show annotations)
Fri Mar 16 05:15:37 2007 UTC (13 years, 3 months ago) by jongui
File MIME type: text/x-python
File size: 294 byte(s)
Added more examples.
1 from esys.pyvisi import Scene
2 from esys.pyvisi.constant import *
3
4 # Create a scene instance.
5 s = Scene(renderer = Renderer.ONLINE, num_viewport = 4, x_size = 800,
6 y_size = 600)
7 s.setBackground(color = Color.YELLOW)
8 s.setTitleBar(text = "Prototype...")
9
10 # Render the scene.
11 s.render()
12

  ViewVC Help
Powered by ViewVC 1.1.26