DrawLine method

void DrawLine(
  1. num startPosX,
  2. num startPosY,
  3. num endPosX,
  4. num endPosY,
  5. ColorD color,
)

Draw a line

Implementation

void DrawLine(
  num startPosX,
  num startPosY,
  num endPosX,
  num endPosY,
  ColorD color,
) => run(
  () => _debugLabels.DrawLine(startPosX, startPosY, endPosX, endPosY, color),
  () => _flat.DrawLine(
    startPosX.toInt(),
    startPosY.toInt(),
    endPosX.toInt(),
    endPosY.toInt(),
    color,
  ),
);