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

Go to the source code of this file.

Functions

color_t ui::shader::negative (color_t pixel, const Coords &coords, const Size &size)
 A pixel shader that inverts the colors of an image.
 

Function Documentation

◆ negative()

color_t ui::shader::negative ( color_t  pixel,
const Coords coords,
const Size size 
)

A pixel shader that inverts the colors of an image.

Parameters
pixelThe original pixel color.
coordsThe coords of the current pixel.
sizeThe total size of the image.