gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
negative.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "../core/color.hpp"
5#include "../core/coords.hpp"
6#include "../core/size.hpp"
7
8namespace ui {
9namespace shader {
10
17color_t negative(color_t pixel, const Coords &coords, const Size &size) {
18 return ~pixel;
19}
20
21} // namespace shader
22} // namespace ui
uint16_t color_t
An RGB565 color value. 5 bits red, 6 bits green, 5 bits blue.
Definition color.hpp:13
color_t negative(color_t pixel, const Coords &coords, const Size &size)
A pixel shader that inverts the colors of an image.
Definition negative.hpp:17
A struct for storing the pixel coordinates of various UI elements.
Definition coords.hpp:17
A struct that holds the number of pixels that a widget would take up on the screen.
Definition size.hpp:17