fromArray method

Color fromArray(
  1. List<double> array, [
  2. int offset = 0
])

Implementation

Color fromArray(List<double> array, [int offset = 0]) {
  r = array[offset];
  g = array[offset + 1];
  b = array[offset + 2];

  return this;
}