Overview
Methods-Overview
- toString() → {String}
- copy(color) → {timapi.Color}
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
toString() → {String}
String representation for debugging purpose.
Returns:
String representation for debugging purpose
Type: String
(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