gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
glow.hpp File Reference

Go to the source code of this file.

Functions

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.
 

Function Documentation

◆ 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
frequencyThe number of milliseconds it takes to make one full cycle.
Parameters
pixelThe original pixel color.
coordsThe coords of the current pixel.
sizeThe total size of the image.
timeThe current clock time in milliseconds.