Single Pixels

How can I manipulate the color of a single pixel? Maybe even w/out opengl. How does openGL do it? I just want to try implementing my own raytracer and do some basic stuff so I understand whats going on behind the scenes. Thanks in advance

Nevermind i figured it out