lineColor function

bool lineColor(
  1. Pointer<SdlRenderer> renderer,
  2. double x1,
  3. double y1,
  4. double x2,
  5. double y2,
  6. int color,
)

Implementation

bool lineColor(Pointer<SdlRenderer> renderer, double x1, double y1, double x2,
    double y2, int color) {
  var co = Uint32List.fromList([color]).buffer.asUint8List();
  return lineRgba(renderer, x1, y1, x2, y2, co[0], co[1], co[2], co[3]);
}