Photon microGUI widgets library 0.6.0
PhWidgets::Drawing::GradientImageType Struct Reference

Provides a collection of gradient image types for use by a Photon microGUI application. More...

#include <Image.h>

Inheritance diagram for PhWidgets::Drawing::GradientImageType:
PhWidgets::Drawing::ImageType

Public Types

Properties

Colors::eColors Collection of standard colors for use by a Photon microGUI application

enum  eGradientImageType { ImageGradientByte , ImageGradientNibble }
 

Detailed Description

Provides a collection of gradient image types for use by a Photon microGUI application.

See also

Member Enumeration Documentation

◆ eGradientImageType

Enumerator
ImageGradientByte 

This format uses 1 byte per pixel. The colors are algorithmically generated as a gradient between the fill color and the text color. A pixel value of 0 produces the fill color, a pixel value of 255 produces the text color, and a pixel value of 128 produces an even blend of the two.

ImageGradientNibble 

This format packs 2 pixels per byte, allowing up to 16 levels. The first pixel is in the upper half of the byte and the second pixel is in the lower half. The colors are algorithmically generated as a gradient between the fill color and the text color. A pixel value of 0 produces the fill color, a pixel value of 15 produces the text color, and a pixel value of 8 produces an even blend of the two.


The documentation for this struct was generated from the following file: