Skip to content

Commit d280cc7

Browse files
committed
Replaced GenImageGradientH and GenImageGradientV with GenImageGradientLinear to align with raylib main.
1 parent 7133302 commit d280cc7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

include/Image.hpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,10 @@ class Image : public ::Image {
131131
}
132132

133133
/**
134-
* Generate image: vertical gradient
134+
* Generate image: linear gradient
135135
*/
136-
static ::Image GradientV(int width, int height, ::Color top, ::Color bottom) {
137-
return ::GenImageGradientV(width, height, top, bottom);
138-
}
139-
140-
/**
141-
* Generate image: horizontal gradient
142-
*/
143-
static ::Image GradientH(int width, int height, ::Color left, ::Color right) {
144-
return ::GenImageGradientH(width, height, left, right);
136+
static ::Image GradientLinear(int width, int height, int direction, ::Color start, ::Color end) {
137+
return ::GenImageGradientLinear(width, height, direction, start, end);
145138
}
146139

147140
/**

0 commit comments

Comments
 (0)