ask from a nubs : stroke and point

hi…

i am a nubs of openframeork, i am trying to build a code derive from processiong.
the code in procession is :
stoke(255);
point(x,y);
how i can made a line composed by point in openframework?
the street of points that i want saw on the render is it:

void walker::step(){

int choice = int(ofRandom(4));

if(choice==0){
x++;
}else if(choice==1){
x–;
}else if(choice==2){
y++;
}else{
y–;
}

thanks…

by

hi ciso, welcome to the OF forum!
you can use

void ofRect(float x1, float y1, float w, float h)

http://www.openframeworks.cc/documentation/graphics/ofGraphics.html#ofRect

set it to 1 pixel id est:

  
ofRect(float x1, float y1, 1, 1)  

and set x1 and y1 where your point should appear.