aalineColor function

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

Implementation

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