I’m having difficulty drawing a Basic roundRectangle!
the only way I managed to do it was with circles and rectangles, but using alpha messes everything up:
ofCircle(x+10, y+10, 10);
ofCircle(x+90, y+10, 10);
ofCircle(x+90, y+90, 10);
ofCircle(x+10, y+90, 10);
ofRect(x+10, y, 80, 100);
ofRect(x, y+10, 100, 80);
I tried using ofVertex and ofCurveVertex, but I get some weird polygon, as if it ignored some of the vertex:
also tried with ofCurve, ofBezier and ofLine, but I still get some weird polygon drawing:
ofLine(10+x, y, 90+x, y);
ofCurve(80+x, y, 90+x, y, 100+x, y+10, 100+x, y+20);
ofLine(100+x, y+10, 100+x, y+90);
can anyone help?