colorCycle(offset)¶
Definition¶
String colorCycle(Number offset)
Description¶
Returns the nth color from choices where n is the offset + 1. If the offset is greater than or equal to the number of choices, n is calculated as (offset % number of choices) + 1.
Parameter Definition¶
Name | Type | Description |
---|---|---|
offset | Number | index into choices |