DrawLine method

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

Implementation

void DrawLine(
  num startPosX,
  num startPosY,
  num endPosX,
  num endPosY,
  ColorD color,
) => run(
  () => 'DrawLine($startPosX, $startPosY, $endPosX, $endPosY, $color)',
  () => rl.Core.DrawLine(
    startPosX.toInt(),
    startPosY.toInt(),
    endPosX.toInt(),
    endPosY.toInt(),
    _refColor1(color).ref,
  ),
);