SFML community forums

Help => Window => Topic started by: zeromeus on June 30, 2011, 09:02:44 pm

Title: Turning pixels on and off?
Post by: zeromeus on June 30, 2011, 09:02:44 pm
Sorry if the answer to this is on the tutorials, but I was looking around and I couldn't find it. After opening a window, how do I set an individual pixel's color?

Thanks!
Title: Turning pixels on and off?
Post by: Hiura on July 01, 2011, 11:17:38 am
You can't.
You have to use sprites. Draw a sprite of size 1x1 at the desired position. It should do it.