Hi everyone,
First, sorry for my bad English
I have a question about a code I actually write.
I need to create some kinds of forms with curves. I stored all points necessary to draw my curve in a vector and I use the ofDrawCurve() function to draw on the screen. I have this code :
ofBeginShape();
ofDrawCurve(vec.at(i).at(0).x, vec.at(i).at(0).y, vec.at(i).at(1).x, vec.at(i).at(1).y, vec.at(i).at(2).x, vec.at(i).at(2).y, vec.at(i).at(3).x, vec.at(i).at(3).y);
ofEndShape(true);
Where vec = vector with points for each curve and i = index to get the curve in the vector.
This code seems to work perfectly and draw curves at the screen, but I need to color the generate shape. I try to use ofSetColor(), but it doesn’t work. Only contour lines are colored with the selected value, but the created shape is not filled. I don’t use ofNoFill() function, so I’m a little bit confused.
Any help will be greatly appreciated.
Thanks in advance!