Go to the source code of this file.
◆ rainbow_cycle()
template<unsigned int frequency>
| color_t ui::shader::rainbow_cycle |
( |
color_t |
pixel, |
|
|
const Coords & |
coords, |
|
|
const Size & |
size, |
|
|
time_t |
time |
|
) |
| |
A pixel shader that smoothly rotates the original color's hue through the rainbow.
- 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. |