hlineColor function

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

Implementation

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