I have an arraylist of 15 objects, let's say flowers, that each have a specified position on the screen. These flowers each have a core that also has 10 other objects, petals, each that rotate around them 360 degrees, are connected to the centre flower by a line and each petal contains its id number.
I need major help in 1) getting the line to attach to the petal, 2) making more than one petal for each flower and 3) displaying the id number in each of the 15 flowers.
What I mean is that each flower should have a petal that says 1, 2, 3, 4, 5 etc. up to 10.
This is the current code I have, it only shows one petal as I am clueless as to how I make more. Also the petal isn't attached to the line.
I've modified code from OpenProcessing as well as trying to use my own knowledge.