| Display Types | |
| circle | A circle object. |
| Functions | |
| circle: | Set the width of the border |
| circle: | Set the fill color for the circle |
| rectangle | A rectangle object. |
| Functions | |
| rectangle: | Set the width of the border |
| rectangle: | Set the fill color for the rectangle |
| line | A polyline object |
| Functions | |
| line: | Set the color of the line |
| sprite | A sprite object. |
| Functions | |
| sprite: | Load an animation for the sprite |
| sprite: | Start the sprite animation. |
| sprite: | Pause the sprite animation. |
| layer | A group of display objects possessing the same depth and blending characteristics. |
| Functions | |
| layer: | Add a display object to this layer. |
| layer: | Set the blend function for this layer. |
| displayobject | An object that can be displayed on the screen |
| Properties | |
| x | The x coordinate |
| y | The y coordinate |
| Functions | |
| displayobject: | Remove this object from the display and allow it to be garbage collected |
| geminiObject | The base object type for all objects in Gemini. |
| Functions | |
| geminiObject: | Add an event listener for the named type of event. |
| geminiObject: | Remove an event listener for the named type of event. |
A circle object.
Inherits from: displayobject
| Functions | |
| circle: | Set the width of the border |
| circle: | Set the fill color for the circle |
A rectangle object.
Inherits from: displayobject
| Functions | |
| rectangle: | Set the width of the border |
| rectangle: | Set the fill color for the rectangle |
A sprite object.
Inherits from: displayobject
| Functions | |
| sprite: | Load an animation for the sprite |
| sprite: | Start the sprite animation. |
| sprite: | Pause the sprite animation. |
A group of display objects possessing the same depth and blending characteristics.
Inherits from: <displayGroup>
| Functions | |
| layer: | Add a display object to this layer. |
| layer: | Set the blend function for this layer. |
An object that can be displayed on the screen
Inherits from: geminiObject
| Properties | |
| x | The x coordinate |
| y | The y coordinate |
| Functions | |
| displayobject: | Remove this object from the display and allow it to be garbage collected |
The base object type for all objects in Gemini.
| Functions | |
| geminiObject: | Add an event listener for the named type of event. |
| geminiObject: | Remove an event listener for the named type of event. |
method geminiObject:addEventListener( name, listener )
Add an event listener for the named type of event.
| name | the name of the event type |
| listener | a function or table containing a function with the same name as the event that will be called when the object receives the event. |
The listener function should accecpt the event object as a parameter. See the Scene Template file for examples.
Set the width of the border
method circle:setBorderWidth( width )
Set the fill color for the circle
method circle:setFillColor( r, g, b, a )
Set the width of the border
method rectangle:setBorderWidth( width )
Set the fill color for the rectangle
method rectangle:setFillColor( r, g, b, a )
Load an animation for the sprite
method sprite:prepare( animation_name )
Start the sprite animation.
method sprite:play()
Pause the sprite animation.
method sprite:pause()
Add a display object to this layer.
method layer:insert( display_object )
Add an event listener for the named type of event.
method geminiObject:addEventListener( name, listener )
Remove an event listener for the named type of event.
method geminiObject:removeEventListener( name, listener )