equivalent of processing point()?

I’m just getting started in openframeworks, trying to convert a bunch of Processing code.
I was wondering what the equivalent of point(x,y) is - i.e. just set the color of a single point? I tried ofCircle(x,y,1), but it doesn’t look the same.

Thanks,
Guy

If you want to set a single pixel you can do:

  
ofRect(x,y,1,1);  

but probably a beter way is to create an ofImage with the width/height you want and draw into that:

  
  
  
ofColor red(255, 0, 0);  
image.setColor(x,y,red);  
image.update();  
  

Thanks, I’ll give it a try

Why not ofPoint() ??

http://www.openframeworks.cc/documentation/types/ofPoint.html

@jesses, ofPoint is used to store x, y and z coordinates but doesn’t have any draw capabilities

cheers, thx
(hadn’t actually used it yet, so hadn’t figured that out…)