hlineColor function

int hlineColor(
  1. Pointer<SdlRenderer> renderer,
  2. int x1,
  3. int x2,
  4. int y,
  5. int color,
)

Implementation

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