Class: Color

timapi.Color(r, g, b)

Color based on RGB-values.

Overview

Methods-Overview

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