assignment 5

fun with openGL and drawstroke.

midterm update coming soon.
code behind cut, yo.
void world::draw() {
ofSetColor( 0xE2F134 );
//color from Nike Dunkesto Neon yellow sneakers- awesomeness
ofRect( 0, 900, ofGetWidth(), ofGetHeight()-550 );
ofSetColor ( 0xEC1280 );
drawStroke();
ofSetColor( 0xE40275 );
ofDrawBitmapString( "Blobie_theBrush.",20, 748 );
}
void world::drawStroke() {
glBegin(GL_TRIANGLE_STRIP);
for(int i=0; i
ofVec2f normal;
if( i == 0) {
normal = points[i].norm_value();
} else {
normal = points[i].perpendicular(points[i-1]);
}
ofVec2f normalPoint = (normal*-10) + points[i];
ofVec2f normalPointInv = (-normal*3) * points[i];
glVertex2f(points[i].x, points[i].y);
glVertex2f(normalPoint.x, normalPoint.y);
glVertex2f(normalPointInv.x, normalPointInv.y);
glVertex2f(points[i].x, points[i].y);
}
glEnd();