.pio/libdeps/m5stack-core2/M5Core2/src/utility/Sprite.cpp
void TFT_eSprite::pushColor(uint32_t color, uint16_t len)
{
  if (!_created ) return;

  uint16_t pixelColor;

  if (_bpp == 16)
    pixelColor = (uint16_t) (color >> 8) | (color << 8);

  else  if (_bpp == 8)
    pixelColor = (color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3;

  else pixelColor = (uint16_t) color; // for 1bpp

  while(len--) writeColor(pixelColor);
}
/***************************************************************************************
** Function name:           pushColor
** Description:             Send a "len" new pixels to the set window
*************************************************************************************x*/
Function name:           pushColor
Description:             Send a "len" new pixels to the set window
x
Function name : pushColor Description : Send a " len " new pixels to the set window x
void TFT_eSprite::pushColor(uint32_t color, uint16_t len)
{
  if (!_created ) return;
  uint16_t pixelColor;
  if (_bpp == 16)
    pixelColor = (uint16_t) (color >> 8) | (color << 8);
  else  if (_bpp == 8)
    pixelColor = (color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3;
  else pixelColor = (uint16_t) color; 
  while(len--) writeColor(pixelColor);
}
void TFT_eSprite :: pushColor ( uint32_t color , uint16_t len ) { if ( ! _created ) return ; uint16_t pixelColor ; if ( _bpp == 16 ) pixelColor = ( uint16_t ) ( color >> 8 ) | ( color << 8 ) ; else if ( _bpp == 8 ) pixelColor = ( color & 0xE000 ) >> 8 | ( color & 0x0700 ) >> 6 | ( color & 0x0018 ) >> 3 ; else pixelColor = ( uint16_t ) color ; while ( len -- ) writeColor ( pixelColor ) ; }
Function name:           pushColor
Description:             Send a "len" new pixels to the set window
x
Function name : pushColor Description : Send a " len " new pixels to the set window x
// for 1bpp