Drawings inside an ofPath

Hi,

How to make drawings inside an ofPath ?

Thanks.

Hi,

path.setFilled( true ) ;
path.setFillColor( ofColor(255,0,0) ) ;
path.draw();

Hi,

Maybe I’m not enough clear : I would like to make more drawings inside an ofPath. For example, random circles that stay inside the path boundaries.

Here is the solution I’ve found :slight_smile:

fbo.begin();
    ofClear(0,0,0,0);
    ofSetColor(255,255,255, alpha);
    monEtoile.draw();
fbo.end();

fbo2.begin();
    ofSetColor(255,255,255, alpha);
    mesRectangles.draw();
fbo2.end();

fbo.getTexture().setAlphaMask(fbo2.getTexture());