Changes between Initial Version and Version 1 of ScriptCustomTypes


Ignore:
Timestamp:
Feb 23, 2008, 4:18:59 AM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ScriptCustomTypes

    v1 v1  
     1= Custom object types =
     2Defines 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  *