Replaced GenImageGradientH and GenImageGradientV with GenImageGradientLinear to align with raylib main.

This commit is contained in:
Som Pourfarzaneh
2023-05-31 10:12:30 -07:00
parent 71333029c1
commit d280cc785b

View File

@@ -131,17 +131,10 @@ class Image : public ::Image {
}
/**
* Generate image: vertical gradient
* Generate image: linear gradient
*/
static ::Image GradientV(int width, int height, ::Color top, ::Color bottom) {
return ::GenImageGradientV(width, height, top, bottom);
}
/**
* Generate image: horizontal gradient
*/
static ::Image GradientH(int width, int height, ::Color left, ::Color right) {
return ::GenImageGradientH(width, height, left, right);
static ::Image GradientLinear(int width, int height, int direction, ::Color start, ::Color end) {
return ::GenImageGradientLinear(width, height, direction, start, end);
}
/**