1
Graphics / Re: Pixel differences between setPixel() and after saveToFile()
« on: January 06, 2019, 07:56:41 pm »
Thanks for the explanation, it makes sens now
This will be definitly be usefull to keep my code clean
There's a very neat function (that got added when I proposed unsigned -> sf::Color constructors ;d) in sf::Color called toInteger BTW. You can neatly print them in a one liner using hex:std::printf("0x%08x\n", pixel.toInteger());
std::cout << "0x" << std::hex << pixel.toInteger() << std::dec << std::endl;
This will be definitly be usefull to keep my code clean