mirror of
https://github.com/orange-cpp/omath.git
synced 2026-08-07 21:42:05 +00:00
24 lines
507 B
C++
24 lines
507 B
C++
#pragma once
|
|
#include "omath/utility/color.hpp"
|
|
|
|
namespace omath::hud
|
|
{
|
|
enum class GradientDirection
|
|
{
|
|
RightToLeft,
|
|
LeftToRight,
|
|
};
|
|
|
|
struct Gradient final
|
|
{
|
|
Color top_left;
|
|
Color top_right;
|
|
Color bottom_right;
|
|
Color bottom_left;
|
|
bool animated = false;
|
|
float animation_speed = 4.f;
|
|
float animation_spread = 0.7f;
|
|
GradientDirection direction = GradientDirection::RightToLeft;
|
|
};
|
|
} // namespace omath::hud
|