QuoteThat code will clear the canvas with a black color.Code (cpp) Selectcanvas->clear();
Change it to
Code (cpp) Select
canvas->clear(sf::Color::Transparent);The Panel also has a background color. So you should add this line as well:
Code (cpp) Select
panel->setBackgroundColor(sf::Color::Transparent);