logoalt Hacker News

emil-lptoday at 3:26 PM1 replyview on HN

Here's what I would need: the ability to position five nodes in a circular fashion, so that they are evenly spaced.


Replies

DominikPeterstoday at 3:32 PM

Intriguing thought. Of course by writing code it can be done

  \foreach \i in {1,...,5} {
    \node[circle, draw] (n\i) at ({90 - 72*(\i-1)}:1cm) {$\i$};
  }
but I'm not sure how to expose that as a UI in a nice way (maybe: if something uses polar coordinates and the user holds shift, then during drag the radius stays fixed, and I nudge towards even angular spacing + multiples of 15 degrees?)
show 1 reply