Re: [csswg-drafts] [css-shapes] New `<shape-command>`: `plot` do draw graphs (#12224)

@tabatkins Yes, I think you understood and summarized correctly what I am proposing. Alas, I’m not sure where the `5px` factor in your version of the example comes from. 

If I remember correctly, Bézier curves, in general, can only approximate those plots, although often remarkably well, so this would be more than syntactic sugar. In SVG, I’ve tried to draw graphs where this feature would have been very handy, but in CSS I did not have an actual need for it yet, although I believe some curves are simpler to express with functions rather than control points.  

How to deal with lengths and discontinuities is exactly where I was stuck with, and why I thought I’d bring it to the public table to get more insight. 

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12224#issuecomment-2906761112 using your GitHub account


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

Received on Saturday, 24 May 2025 10:31:20 UTC