added gradient dir

This commit is contained in:
2026-07-12 22:51:36 +03:00
parent 945f80241c
commit d4c86dacc7
4 changed files with 20 additions and 2 deletions
+7
View File
@@ -3,6 +3,12 @@
namespace omath::hud
{
enum class GradientDirection
{
RightToLeft,
LeftToRight,
};
struct Gradient
{
Color top_left;
@@ -12,5 +18,6 @@ namespace omath::hud
bool animated = false;
float animation_speed = 4.f;
float animation_spread = 0.7f;
GradientDirection direction = GradientDirection::RightToLeft;
};
} // namespace omath::hud