| 1 | = Custom object types = |
| 2 | Defines Point2d and SColour as JS classes. The former is fully implemented but never registered, so it's not actually available in script. It serves as a demonstration of how to add a new type. |
| 3 | |
| 4 | == class SColour (JSObject) == |
| 5 | * '''Overview:''' |
| 6 | * Holds RGBA values (stored as float) |
| 7 | * '''Syntax:''' |
| 8 | * SColour() // set everything to 0 |
| 9 | * SColour(float r, float g, float b) // alpha=1 |
| 10 | * SColour(float r, float g, float b, float a) |
| 11 | * '''Parameters:''' |
| 12 | * color/alpha specifications. default values are listed above. |
| 13 | * '''Returns:''' |
| 14 | * |
| 15 | * '''Notes:''' |
| 16 | * |