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

Go to the source code of this file.

Functions

color_t ui::shader::halfGrayscaleV (color_t pixel, const Coords &coords, const Size &size)
 A pixel shader that converts the right half of an image to grayscale.
 

Function Documentation

◆ halfGrayscaleV()

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

A pixel shader that converts the right half of an image to grayscale.

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