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

画心形我有个问题 #17

Open
luoqiang108 opened this issue Jan 2, 2019 · 1 comment
Open

画心形我有个问题 #17

luoqiang108 opened this issue Jan 2, 2019 · 1 comment

Comments

@luoqiang108
Copy link

path.addArc(200, 200, 400, 400, -225, 225);
path.arcTo(400, 200, 600, 400, -180, 225, false);
path.lineTo(400, 542)
这段代码在我的理解里绘制出来的心形应该是少了左下直线部分的,但是为什么实际是一个完整的心形呢

@Taonce
Copy link

Taonce commented Jan 10, 2019

你把你的paint设置成:paint.style = Paint.Style.STROKE看看,这样是不是少了左下直线部分,再用path.colse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants