Quote from
Gaev on February 27, 2020, 7:25 pm
@rrey
For example to make several objects arranged in a circle with respect to another that is in the center.
I don't know if there is CSS for something like this ... but it would be possible do this via scripting ... a generic subroutine could be passed ...
- the name of the object at the center of this imaginary circle
- the radius of this same circle
- the starting angle (e.g. 0 degrees would be north)
- the list (names) of objects to be located on the circumference (starting at 0 degrees and moving clockwise)
Assuming that the centers of the objects on the circumference would be placed at an equal angle (360 degrees divided by number of objects), consideration would have to be given to situations where objects would end up overlapping adjacent ones.
@rrey
For example to make several objects arranged in a circle with respect to another that is in the center.
I don't know if there is CSS for something like this ... but it would be possible do this via scripting ... a generic subroutine could be passed ...
- the name of the object at the center of this imaginary circle
- the radius of this same circle
- the starting angle (e.g. 0 degrees would be north)
- the list (names) of objects to be located on the circumference (starting at 0 degrees and moving clockwise)
Assuming that the centers of the objects on the circumference would be placed at an equal angle (360 degrees divided by number of objects), consideration would have to be given to situations where objects would end up overlapping adjacent ones.