genImageGradientV function

Image genImageGradientV(
  1. int width,
  2. int height,
  3. Color top,
  4. Color bottom,
)

Generate image: vertical gradient.

Implementation

Image genImageGradientV(
  int width,
  int height,
  Color top,
  Color bottom,
) {
  return Image.fromRef(
    library.GenImageGradientV(
      width,
      height,
      top.ref,
      bottom.ref,
    ),
  );
}