-
limiting rotations
hi all
I’m attempting to make an automated pie chart, where you have as many segments as you like and the final segment fits into the remaining space perfectly. I have it working apart from the final segment. I am trying to use the rotation of the previous layer (combined with it’s own segment angle) to drive the final segment angle, but because of the way I have set up the previous segments, the penultimate angle can be several times 360 + the angle I want to use. For example:
4x+240.0°
in this instance how to I get rid of the 4x?
I have tried writing a while loop to say while the angle is greater than 360, subtract 360, but it doesn’t seem to regard the 4x+240.0° as being more than 360.
Any pointers would be gratefully received.
cheers
Matt
Visual tinkerer and easily distracted admirer of all things shiny! – writer – animator – digital artist