Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

border-radius支持border渲染 #50

Closed
army8735 opened this issue Apr 8, 2020 · 2 comments
Closed

border-radius支持border渲染 #50

army8735 opened this issue Apr 8, 2020 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@army8735
Copy link
Member

army8735 commented Apr 8, 2020

https://drafts.csswg.org/css-backgrounds-3/#border-radii

@army8735 army8735 added bug Something isn't working enhancement New feature or request labels Apr 8, 2020
@army8735 army8735 self-assigned this Apr 8, 2020
@army8735
Copy link
Member Author

army8735 commented May 21, 2020

image
image
image
image

@army8735
Copy link
Member Author

army8735 commented May 25, 2020

之前的魔法数字4 * (Math.sqrt(2) - 1) / 3 = 0.5522847498307936
https://www.tinaja.com/glib/ellipse4.pdf 更好的魔法数字 0.551784
http://spencermortensen.com/articles/bezier-circle/ 另一个更好的0.55191502449
https://math.stackexchange.com/questions/2337392/minimizing-error-in-b%C3%A9zier-circle-approximation 首尾不为0,1的误差更小

army8735 added a commit that referenced this issue May 30, 2020
army8735 added a commit that referenced this issue May 30, 2020
army8735 added a commit that referenced this issue May 30, 2020
army8735 added a commit that referenced this issue May 30, 2020
army8735 added a commit that referenced this issue Jun 2, 2020
army8735 added a commit that referenced this issue Jul 8, 2020
army8735 added a commit that referenced this issue Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant