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

Go to the source code of this file.

Functions

color_t ui::shader::startupRainbow (color_t pixel, const Coords &coords, const Size &size, time_t time)
 A pixel shader that that animates a rainbow transition from black to white.
 

Function Documentation

◆ startupRainbow()

color_t ui::shader::startupRainbow ( color_t  pixel,
const Coords coords,
const Size size,
time_t  time 
)

A pixel shader that that animates a rainbow transition from black to white.

This is only meant to be used once at startup.

Parameters
pixelThe original pixel color.
coordsThe coords of the current pixel.
sizeThe total size of the image.
timeThe current clock time in milliseconds.