Dividing shapes in images.

Started by ALPHATT, Sat 30/07/2011 12:37:20

Previous topic - Next topic

ALPHATT

I don't where this should go so I'm posting here:

Alright so say I have a circle and I wanna draw x amount of radii so that I can divide the circle into y amount of parts much like a cake. I get that I can easily do this by hand with small amounts but is there a program that can automatically do/calculate this when I need a lot of 'slices'.
/sig

Khris

Do you mean a pie chart?

Excel or any other spreadsheet software can do this.

Wyz

Well the whole circle is 2π radians or 360 degrees. If you want to divide it into y parts you get 2π/y radii or 360/y degrees. You can use sine and cosine to get the x and y coordinates for that. It is exactly the same if you want to automate this process.
Life is like an adventure without the pixel hunts.

Gilbert

Whatever Wyz+ has said.

Yeah, it's not difficult to do. For example, we can do this with AGS:

SMF spam blocked by CleanTalk