Constructor Summary
| Public Constructor | ||
| public |
constructor(colors: string | array<string>): * Constructs a ColorSpan instance. |
|
Member Summary
| Public Members | ||
| public |
An array of colors to select from |
|
| public |
Determines if a random color should be returned from the getValue method. |
|
| public |
The class type. |
|
Method Summary
| Public Methods | ||
| public |
Gets a color from the color array or a random color if this.shouldRandomize is true. |
|
Inherited Summary
| From class Span | ||
| public |
a: * |
|
| public |
b: * |
|
| public |
The class type. |
|
| private |
_center: * |
|
| private |
|
|
| public |
Span.getValue function |
|
Public Constructors
public constructor(colors: string | array<string>): * source
Constructs a ColorSpan instance.
Override:
Span#constructorReturn:
| * | void |
Public Members
Public Methods
public getValue(): string source
Gets a color from the color array or a random color if this.shouldRandomize is true.
