Draw only slices of an ellipse


#1

Hey JUCErs!

Got a quick question (as the topic already says):
I wanna draw only a slice-style part of an ellipse, is there any way to do so?
Like some g.drawEllipse(const float, const float, const float, const float, const float sliceWidth) or a similar workaround?

Any help appreciated,
o.


#2

The Path class has stuff for creating arcs - see if that does what you need.


#3

What does one of them look like then?

Theres Path::addArc() , Path::addCentredArc() and Path::addPieSegment() if any of those is like the ‘slice’ your after.

If not you’ll probably end up doing some kind of path buggery anyway.


#4

[quote=“Karbon L. Forms”]What does one of them look like then?

Theres Path::addArc() , Path::addCentredArc() and Path::addPieSegment() if any of those is like the ‘slice’ your after.

If not you’ll probably end up doing some kind of path buggery anyway.[/quote]

That’s exactly what I was looking for, thanks. Sorry, slice wasn’t the right word, was looking for the pie-thingy. :oops: