30days-openframeworks

30days-openFrameworks

Stars
8

30days-openframeworks

Videos

https://www.instagram.com/explore/tags/30daysopenframeworks/

Drawing Primitives

Line

ofSetLineWidth(5);
ofDrawLine(x1, y1, x2, y2);
strokeWeight(5);
line(x1, y1, x2, y2);

Rect

ofRect(x, y, w, h);
rect(x, y, w, h);

Triangle

ofTriangle(x1, y1, x2, y2, x3, y3);
triangle(x1, y1, x2, y2, x3, y3);

Circle

ofDrawCircle(x, y, r);
ellipse(x, y, r);

fill & nofill

ofFill(r, g, b, alpha);
ofNoFill();
fill(r, g, b, alpha);
noFill();

dot

ofPoint(x, y);
dot(x, y);