drawLine function

void drawLine(
  1. int startPosX,
  2. int startPosY,
  3. int endPosX,
  4. int endPosY,
  5. Color color,
)

Draw a line.

Implementation

void drawLine(
  int startPosX,
  int startPosY,
  int endPosX,
  int endPosY,
  Color color,
) {
  return library.DrawLine(
    startPosX,
    startPosY,
    endPosX,
    endPosY,
    color.ref,
  );
}