From 5a56c68afb8b1043220702d0a8b92b813e7058e4 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 22 Jun 2023 12:26:21 -0400 Subject: [PATCH] Revert "Replaced GenImageGradientH / V with GenImageGradientLinear" --- include/Image.hpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/include/Image.hpp b/include/Image.hpp index a6d60d3..5bc7d08 100644 --- a/include/Image.hpp +++ b/include/Image.hpp @@ -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); } /**