Re: [svgwg] [feature request]basic shapes 'triangle' element (#954)

That's basically the `<polygon>` element.   
Sure, a built-in element for *regular* polygons could be *nice* but I think that's rather the domain of helper libraries. 
You just need to calculate multiple points around a specified center point with specified angles (according to the number of vertices) and there you go. See [codepen example](https://codepen.io/herrstrietzel/pen/ExBeZPp)

-- 
GitHub Notification of comment by herrstrietzel
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/954#issuecomment-2556029038 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 20 December 2024 00:44:55 UTC