filledPolygonColor function

bool filledPolygonColor(
  1. Pointer<SdlRenderer> renderer,
  2. Pointer<Int16> vx,
  3. Pointer<Int16> vy,
  4. int n,
  5. int color, {
  6. int blendMode = SDL_BLENDMODE_BLEND,
})

Implementation

bool filledPolygonColor(
  Pointer<SdlRenderer> renderer,
  Pointer<Int16> vx,
  Pointer<Int16> vy,
  int n,
  int color, {
  int blendMode = SDL_BLENDMODE_BLEND,
}) {
  final co = Uint32List.fromList([color]).buffer.asUint8List();
  return filledPolygonRgbaMt(
    renderer,
    vx,
    vy,
    n,
    co[0],
    co[1],
    co[2],
    co[3],
    blendMode: blendMode,
  );
}