Trouble with ofNoFill

Hello List.

I’m having a little trouble with the ofNoFill class.

No matter where I put it in the draw part of my document all the shapes become empty.

Shouldn’t it just work on what goes below it?

Thanks

******Sorry. being an idiot. I meant the ofNoFill class

****************

Ash

can we see your code

Sorry, sure

//--------------------------------------------------------------
void testApp::draw(){

ofBackgroundGradient(ofColor::white,ofColor(205,205,105), OF_GRADIENT_CIRCULAR);

ofSetColor(255, 0, 20);
ofCircle(200, 220, 40);// red circle

ofSetColor(0);
ofCircle(125, 125, 100);//black circle
ofSetColor(170, 0, 210);
ofCircle(125, 125, 50);//PURPLE CIRCLE

ofSetColor(250, 200, 0);
ofCircle(150, 500, 40);//yellow circle
ofEnableAlphaBlending();
ofSetColor(226, 34, 227, 100);//pink
ofCircle(290, 700, 40);//pink circle
ofSetColor(0, 30, 200);//blue
ofCircle(290, 700, 30); //blue circle
ofSetColor(255, 255, 0, 40);//yellow
ofCircle(290, 700, 50);// yellow circle

ofSetColor(255, 0, 0);
ofCircle(500, 150, 10); //little red circle

ofSetColor(0, 200, 175);
ofCircle(525, 100, 15);//bluey green circle

ofSetColor(255);
ofCircle(500, 300, 40);// white circle

ofSetColor(100, 100, 255);
ofCircle(600, 125, 10);

///triangle

ofSetColor(255, 200, 100);
ofTriangle(425, 400, 582, 300, 611, 400);

//rectange next to triangle

ofSetLineWidth(1);
ofSetColor(0);
ofLine(300, 75, 300, 200);

ofLine(275, 80, 400, 120);
ofLine(290, 110, 330, 110);
ofLine(295, 120, 335, 120);

ofSetLineWidth(0.5);
ofLine(155, 275, 300, 155);
ofLine(300, 155, 700, 450);

//sides of A shape
ofSetLineWidth(1);
ofLine(325, 700, 500, 25);
ofLine(500, 25, 700, 700);

/////// A shape line
ofSetLineWidth(0.95);
ofLine(200, 500, 780, 500); //disecting line of A
ofSetLineWidth(0.25);
ofLine(500, 500, 500, 800);
ofLine(317, 615, 370, 615);//smaller left hand top line
ofLine(320, 630, 370, 630); // lowe short left hand line

///////////lines to right of picture

ofSetLineWidth(1.5);
ofLine(650, 200, 800, 450);//vertical line
ofLine(665, 195, 800, 450);//vertical line
ofLine(680, 193, 820, 445);//vertical line
ofLine(695, 188, 820, 445);//vertical line

ofLine(650, 200, 1024, 100);//horizontal line
ofLine(658, 215, 1024, 115);//horizontal line
ofLine(667, 230, 1024, 130);//horizontal line
ofLine(677, 245, 820, 205);//horizontal line
ofLine(685, 260, 900, 200);//horizontal line
ofLine(670, 200, 780, 250);

////arcs on A

ofNoFill();

}

ofNoFill() is a function not a class, :slight_smile: and you are not and idiot when you don’t know something in programing.

when you use ofNoFill() then at the end use ofFill();

if you don’t then it will go in a loop and “infect” all your code…

*same goes with the other gl functions like ofPushMatrix, ofEnableBlandMode etc…

2 Likes

ahh I see.

That makes sense to close it up after.

*I was being an idiot as I originally put ofFill instead of ofNoFill in my post :wink:

As for programming, I barely know anything :smiley:

Cheers

Ash