drawRectangleGradientH function

void drawRectangleGradientH(
  1. int posX,
  2. int posY,
  3. int width,
  4. int height,
  5. Color color1,
  6. Color color2,
)

Draw a horizontal-gradient-filled rectangle.

Implementation

void drawRectangleGradientH(
  int posX,
  int posY,
  int width,
  int height,
  Color color1,
  Color color2,
) {
  return library.DrawRectangleGradientH(
    posX,
    posY,
    width,
    height,
    color1.ref,
    color2.ref,
  );
}