You are not logged in.
Hi All,
I want to place text on a circular path and need to calculate the minimally required radius (r) so all characters fit exactly on the circle.
height of character: y
width of character: x (variable, but considered equal to y for now)
number of characters: n
degrees per character: 360 / n
I could use r = 2y, but that feels like cheating.
How do I calculate the exact value of r?
Update: I think I found it myself
circle circumfence = 2πr
In my case: minimal circumfence = n * x
radius = circumfence / 2π
So minimally required r = (n*x) / 2π
Would that be correct?
Cheers,
Rene
P.S.: I now know how to use trigonometry functions in CSS, should not pose (much of) a problem.
Last edited by renevanderlende (2021-10-24 11:02:18)
Offline
Hi Rene,
Before I read your update, that's what I thought might work.
Good luck with it.
Bob
Children are not defined by school ...........The Fonz
You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you! …………….Bob
Offline