Go to the source code of this file.
|
| template<unsigned int frequency> |
| color_t | ui::shader::glow (color_t pixel, const Coords &coords, const Size &size, time_t time) |
| | A pixel shader that smoothly cycles between an image's original color and white.
|
| |
◆ glow()
template<unsigned int frequency>
| color_t ui::shader::glow |
( |
color_t |
pixel, |
|
|
const Coords & |
coords, |
|
|
const Size & |
size, |
|
|
time_t |
time |
|
) |
| |
A pixel shader that smoothly cycles between an image's original color and white.
- Template Parameters
-
| frequency | The number of milliseconds it takes to make one full cycle. |
- Parameters
-
| pixel | The original pixel color. |
| coords | The coords of the current pixel. |
| size | The total size of the image. |
| time | The current clock time in milliseconds. |