clause method

  1. @override
CommandClause clause()
override

Implementation

@override
CommandClause clause() {
  if (_topLeftX > 575) {
    _topLeftX = 575;
  }
  if (_bottomRightX > 575) {
    _bottomRightX = 575;
  }
  return CPCLCommand(header: header())
      .appendNumber(_topLeftX)
      .appendNumber(_topLeftY)
      .appendNumber(_bottomRightX)
      .appendNumber(_bottomRightY)
      .appendNumber(_lineWidth)
      .clause();
}