fillFromRawData method

void fillFromRawData(
  1. Float32List rstTransforms,
  2. Float32List rect,
  3. int color, [
  4. int skipCount = 0,
])

Implementation

void fillFromRawData(Float32List rstTransforms, Float32List rect, int color,
    [int skipCount = 0]) {
  final fillLength = max(0, min(freeLength, rstTransforms.length - skipCount));
  if (fillLength < 4) {
    print('error fillLength:$fillLength must be at least 4');
    return;
  }
  final index0 = currentIndex;
  final end = index0 + fillLength;
  rawTransforms.setRange(index0, end, rstTransforms, skipCount);
  final fillCount = fillLength ~/ 4;
  for (var i = 0; i < fillCount; i++) {
    var start = i * 4;
    rawSources.setRange(index0 + start, start + 4, rect, skipCount);
  }
  rawColors.fillRange(_rectCount, _rectCount + fillCount, color);
  _rectCount += fillCount;
}