Skip to content

Does ofPath support drawing both fill and stroke at the same time? #1571

@danomatika

Description

@danomatika

I can't tell from the ofPath api if you can draw both fill and stroke simultaneously. Regular ofGrpahics calls do not support this ...

Also, what happens if you:

path.setFilled(false);
path.setStrokeWidth(0);

Is nothing drawn? If the api supports drawing both fill and outline, then it would make sense that setting the stroke width to 0 here would automatically set fill to true ... so at least something is drawn. Same conversely ...

Edit: In fact, having a stroke/fill approach does not match the ofGraphics api. Maybe it makes sense to just have setColor(), fill(), and nofill() so ofPath works the same way ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions