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

  // Write the colour to RAM in set window
  if (_bpp == 16)
    _img [_xptr + _yptr * _iwidth] = (uint16_t) (color >> 8) | (color << 8);

  else  if (_bpp == 8)
    _img8[_xptr + _yptr * _iwidth] = (uint8_t )((color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3);
  
  else drawPixel(_xptr, _yptr, color);

  // Increment x
  _xptr++;

  // Wrap on x and y to start, increment y if needed
  if (_xptr > _xe)
  {
    _xptr = _xs;
    _yptr++;
    if (_yptr > _ye) _yptr = _ys;
  }
}
/***************************************************************************************
** Function name:           pushColor
** Description:             Send a new pixel to the set window
*************************************************************************************x*/
Function name:           pushColor
Description:             Send a new pixel to the set window
x
Function name : pushColor Description : Send a new pixel to the set window x
void TFT_eSprite::pushColor(uint32_t color)
{
  if (!_created ) return;
  if (_bpp == 16)
    _img [_xptr + _yptr * _iwidth] = (uint16_t) (color >> 8) | (color << 8);
  else  if (_bpp == 8)
    _img8[_xptr + _yptr * _iwidth] = (uint8_t )((color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3);
  else drawPixel(_xptr, _yptr, color);
  _xptr++;
  if (_xptr > _xe)
  {
    _xptr = _xs;
    _yptr++;
    if (_yptr > _ye) _yptr = _ys;
  }
}
void TFT_eSprite :: pushColor ( uint32_t color ) { if ( ! _created ) return ; if ( _bpp == 16 ) _img [ _xptr + _yptr * _iwidth ] = ( uint16_t ) ( color >> 8 ) | ( color << 8 ) ; else if ( _bpp == 8 ) _img8 [ _xptr + _yptr * _iwidth ] = ( uint8_t ) ( ( color & 0xE000 ) >> 8 | ( color & 0x0700 ) >> 6 | ( color & 0x0018 ) >> 3 ) ; else drawPixel ( _xptr , _yptr , color ) ; _xptr ++ ; if ( _xptr > _xe ) { _xptr = _xs ; _yptr ++ ; if ( _yptr > _ye ) _yptr = _ys ; } }
Function name:           pushColor
Description:             Send a new pixel to the set window
x
Function name : pushColor Description : Send a new pixel to the set window x
// Write the colour to RAM in set window // Increment x // Wrap on x and y to start, increment y if needed