Update TFT_eSPI.h

This commit is contained in:
Bodmer 2023-06-30 14:13:23 +01:00 committed by GitHub
parent eb68e056d9
commit 7c21d4ff56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,7 +731,12 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
// Alpha blend 2 colours, see generic "alphaBlend_Test" example // Alpha blend 2 colours, see generic "alphaBlend_Test" example
// alpha = 0 = 100% background colour // alpha = 0 = 100% background colour
// alpha = 255 = 100% foreground colour // alpha = 255 = 100% foreground colour
#ifdef STM32
uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc); uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc);
#else
inline
uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc);
#endif
// 16 bit colour alphaBlend with alpha dither (dither reduces colour banding) // 16 bit colour alphaBlend with alpha dither (dither reduces colour banding)
uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc, uint8_t dither); uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc, uint8_t dither);
// 24 bit colour alphaBlend with optional alpha dither // 24 bit colour alphaBlend with optional alpha dither