0

For example, imagine, I want to create a rectangle in SVG where the height is equal to (3*width)^2+width and add, at the bottom, a circle of radius width/2 (cx,cy, r = f( width)). Everything depends only of one parameter : the rectangle width. I know it is possible to do it with javascript but I would like something more direct. Is it ccs variable, the only alternative ? Thanks for answer.

Rq : I read this post (How do I define or reference a variable in SVG?) but it is rather old (from 2015) and it seems the situation has not so much evolved or I googled poorly.

Stef1611
  • 1,978
  • 2
  • 11
  • 30

0 Answers0