1.2

| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials |

   Axis
   Blend
   Color
   ColorBar
   Fog
   Freetype
   Light
   Line
   Material
   Node
   Point
   Plot
   Polygon
   Render
   Scene
   Stencil
   TexCoord
   Text
   Texture
   Vertex

zeScene

Use .new("scene") to create the object. It determines the foreground color, the view port, and the projection type. The default view port is (0, 0, 512, 512); that is the view port covers the whole drawing area of a render with default setups

:ortho()

Uses orthogonal projection.

:perspective(s)

s - view depth scale factor.

Uses perspective projection.

:set(table)

table - a Lua table.

Sets scene properties. Valid key-value paris are listed in the table.

Key Value Type Remark
color {r, g, b, a} Numbers (0 to 1) in table Sets the foreground color.
viewport {x, y, w, h} Positive numbers in table Sets the viewort.
node obj zeNode Assigns the node object to the scene as the root node.
enable flag Boolean Enables or disables the object.