Skip to content

koji/30days-openframeworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);