drawText function

void drawText(
  1. String text,
  2. int posX,
  3. int posY,
  4. int fontSize,
  5. Color color,
)

Draw text (using default font)

Implementation

void drawText(String text, int posX, int posY, int fontSize, Color color) {
  return library.DrawText(
    string.toNative(text),
    posX,
    posY,
    fontSize,
    color.ref,
  );
}