mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
Merge pull request #239 from RobLoach/revert-236-GenImageGradientLinear
Revert "Replaced GenImageGradientH / V with GenImageGradientLinear"
This commit is contained in:
@@ -131,10 +131,17 @@ class Image : public ::Image {
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate image: linear gradient
|
||||
* Generate image: vertical gradient
|
||||
*/
|
||||
static ::Image GradientLinear(int width, int height, int direction, ::Color start, ::Color end) {
|
||||
return ::GenImageGradientLinear(width, height, direction, start, end);
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user