- Source:
Methods
(inner) colorDistrictVote(canList) → {Array.<String>}
Update color for each district, based on votes for each candidate.
Blend candidate colors in proportion to their votes.
Parameters:
Name | Type | Description |
---|---|---|
canList |
Array.<Candidate> | An array of Candidate objects. |
- Source:
Returns:
- List of color strings indexed by district.
- Type
- Array.<String>