A lightweight library to distribute items equally around a circle.
circleats(
circleSpec,
itemsNumber,
startSide,
itemSpec
)
The circleats() function takes up to 4 parameters:
circleSpec- an object with the following properties:x- the x coordinate of circle centery- the y coordinate of circle centerr- radius of the circle
itemsNumber- a number of items to distribute around the circlestartSide- a side the distribution begins on; may be assigned one of the following values: top, bottom, left, right, T, B, L, R (the parameter is case-insensitive, which means you can passtopas well asTOPorTop, for example)itemSpec- dimensions of each item; it may be a single number (then it is interpreted as both width and height) or an array of one or two items ([width, height=width])