FastLED 3.10.10
Loading...
Searching...
No Matches

◆ polyABAlpha()

fl::u8 fl::gfx::detail::polyABAlpha ( fl::u32 mask)
inline

Alpha (0..255) for an 8x4 mask: 8 per subpixel, saturating at 255 (32 subpixels would otherwise wrap a u8).

Definition at line 212 of file poly_abuffer.h.

212 {
213 const fl::u8 p = polyABPopcount32(mask);
214 const fl::u8 br = (fl::u8)(p * 8u);
215 return (p >= 32u) ? 255u : br;
216}
unsigned char u8
Definition s16x16x4.h:132
fl::u8 polyABPopcount32(fl::u32 v) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, and polyABPopcount32().

Referenced by drawPolygonABufferCore().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: