#include <algorithm>
#include <cstdint>
#include <optional>
Go to the source code of this file.
|
template<typename ScaleType > |
constexpr Color | graphics::lerp (Color lhs, Color rhs, ScaleType t) |
| Performs linear interpolation between two colors. More...
|
|
GRAPHICS_API constexpr Color | graphics::ColorFromRGA (uint32_t rgba) noexcept |
| A helper function to create a color from a 32-bit RGBA integer. More...
|
|
GRAPHICS_API constexpr Color | graphics::ColorFromABGR (uint32_t abgr) noexcept |
| A helper function to create a color from a 32-bit ABGR integer. More...
|
|
GRAPHICS_API constexpr Color | graphics::ColorFromRGB (uint32_t rgb) noexcept |
| A helper function to create a color from a 32-bit RGB integer. Alpha is set to 255. More...
|
|
GRAPHICS_API constexpr Color | graphics::ColorFromARGB (uint32_t argb) noexcept |
| A helper function to create a color from a 32-bit ARGB integer. More...
|
|
GRAPHICS_API constexpr Color | graphics::ColorFromFloatRGBA (float r, float g, float b, float a) noexcept |
| A helper function to create a color from the floating point components. More...
|
|