aalineColor function

bool aalineColor(
  1. Pointer<SdlRenderer> renderer,
  2. double x1,
  3. double y1,
  4. double x2,
  5. double y2,
  6. int color, {
  7. int blendMode = SDL_BLENDMODE_BLEND,
})

Implementation

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