NcEngine
nc::Gradient Struct Reference

Gradient between two Colors. More...

#include <Color.h>

Public Member Functions

constexpr Gradient (const Color &solidColor) noexcept
 
constexpr Gradient (const Color &from, const Color &to) noexcept
 
constexpr auto Lerp (float t) const noexcept -> Color
 Select a Color between start and end.
 
constexpr auto Lerp (float tColor, float tAlpha) const noexcept -> Color
 Select a Color between start and end with distinct color and alpha factors.
 

Public Attributes

Color start
 
Color end
 

Friends

constexpr auto operator== (const Gradient &lhs, const Gradient &rhs) -> bool
 

Detailed Description

Gradient between two Colors.


The documentation for this struct was generated from the following file: