stringColor function

int stringColor(
  1. Pointer<SdlRenderer> renderer,
  2. int x,
  3. int y,
  4. String s,
  5. int color,
)

Implementation

int stringColor(
    Pointer<SdlRenderer> renderer, int x, int y, String s, int color) {
  var co = Uint32List.fromList([color]).buffer.asUint8List();
  return stringRgba(renderer, x, y, s, co[0], co[1], co[2], co[3]);
}