TermOx
Classes | Public Member Functions | List of all members
ox::dynamic::Fade< Shape > Class Template Reference

Dynamic_color type that fades between two HSL Colors. More...

#include <dynamic_colors.hpp>

Public Member Functions

 Fade (HSL const a, HSL const b, Shape &&shape_fn)
 Dynamic Color that cycles between a and b and back. More...
 
auto operator() () -> True_color
 

Detailed Description

template<typename Shape>
class ox::dynamic::Fade< Shape >

Dynamic_color type that fades between two HSL Colors.

Modulation of the shift between the two colors controlled by Shape fn.

Constructor & Destructor Documentation

◆ Fade()

template<typename Shape >
ox::dynamic::Fade< Shape >::Fade ( HSL const  a,
HSL const  b,
Shape &&  shape_fn 
)
inline

Dynamic Color that cycles between a and b and back.

Shape function object should return ratio of where between the two colors the fade is at.


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