DrawRectangleGradientEx method

  1. @override
void DrawRectangleGradientEx(
  1. Rectangle rec,
  2. Color topLeft,
  3. Color bottomLeft,
  4. Color topRight,
  5. Color bottomRight,
)
override

Draw a gradient-filled rectangle with custom vertex colors

Implementation

@override
void DrawRectangleGradientEx(
  Rectangle rec,
  Color topLeft,
  Color bottomLeft,
  Color topRight,
  Color bottomRight,
) => _ffi.DrawRectangleGradientEx(
  Rectangle$.Ref1(rec).asNativePointer<RectangleC>().ref,
  Color$.Ref1(topLeft).asNativePointer<ColorC>().ref,
  Color$.Ref2(bottomLeft).asNativePointer<ColorC>().ref,
  Color$.Ref3(topRight).asNativePointer<ColorC>().ref,
  Color$.Ref4(bottomRight).asNativePointer<ColorC>().ref,
);