writePattern method
int
writePattern(
- VectorGraphicsBuffer buffer,
- double x,
- double y,
- double width,
- double height,
- Float64List transform,
Implementation
int writePattern(
VectorGraphicsBuffer buffer,
double x,
double y,
double width,
double height,
Float64List transform,
) {
buffer._checkPhase(_CurrentSection.commands);
assert(buffer._nextPatternId < kMaxId);
final int id = buffer._nextPatternId;
buffer._nextPatternId += 1;
buffer._putUint8(_patternTag);
buffer._putUint16(id);
buffer._putFloat32(x);
buffer._putFloat32(y);
buffer._putFloat32(width);
buffer._putFloat32(height);
buffer._writeTransform(transform);
return id;
}