Custom object types
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.
class SColour (JSObject)
- Holds RGBA values (stored as float)
- SColour() set everything to 0
- SColour(float r, float g, float b) alpha=1
- SColour(float r, float g, float b, float a)
- color/alpha specifications. default values are listed above.