writeDrawPath method
Encode a draw path command in the current buffer.
Requires that pathId
and paintId
to already be encoded.
Implementation
void writeDrawPath(
VectorGraphicsBuffer buffer,
int pathId,
int paintId,
int? patternId,
) {
buffer._checkPhase(_CurrentSection.commands);
buffer._addCommandsTag();
buffer._putUint8(_drawPathTag);
buffer._putUint16(pathId);
buffer._putUint16(paintId);
buffer._putUint16(patternId ?? kMaxId);
}