Stage::add()
Add a sprite object to the stage
Syntax
Java
.add(sprite)
.add(text)
.add(pen)
Parameters
| Name | Data Type | Description |
|---|---|---|
| sprite | Sprite | a sprite |
| text | Text | a text |
| pen | Pen | the Pen object to be added to the stage |
Return
void

Add a sprite object to the stage
.add(sprite)
.add(text)
.add(pen)
| Name | Data Type | Description |
|---|---|---|
| sprite | Sprite | a sprite |
| text | Text | a text |
| pen | Pen | the Pen object to be added to the stage |
void