Skip to content

Commit c4c8566

Browse files
authored
Merge pull request #240 from RobLoach/revert-239-revert-236-GenImageGradientLinear
GenImageGradientH / V with GenImageGradientLinear
2 parents b2d3787 + 4d47c31 commit c4c8566

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)