Overview
Methods-Overview
- copy(color) → {timapi.Color}
- toString() → {String}
Constructor
new Color(r, g, b)
Create color from RGB-values
Parameters:
Name | Type | Description |
---|---|---|
r |
Number | Red-value (0 ... 255) |
g |
Number | Green-value (0 ... 255) |
b |
Number | Blue-value (0 ... 255) |
Methods
(static) copy(color) → {timapi.Color}
Creates a copy of a timapi.Color object.
Parameters:
Name | Type | Description |
---|---|---|
color |
timapi.Color | Original |
Returns:
Copy of original
Type: timapi.Color
toString() → {String}
String representation for debugging purpose.
Returns:
String representation for debugging purpose
Type: String