ColorUint1.fromList constructor

ColorUint1.fromList(
  1. List<int> color
)

Implementation

ColorUint1.fromList(List<int> color)
    : length = color.length,
      data = 0 {
  setRgba(length > 0 ? color[0] : 0, length > 1 ? color[1] : 0,
      length > 2 ? color[2] : 0, length > 3 ? color[3] : 0);
}