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

关于HeartView的moveTo和lineTo #3

Open
drogbababa opened this issue Dec 30, 2019 · 0 comments
Open

关于HeartView的moveTo和lineTo #3

drogbababa opened this issue Dec 30, 2019 · 0 comments

Comments

@drogbababa
Copy link

作者您好,我在看您的HeartView ,其中有个问题想请教。就是createHeart()中,为什么要用lineTo,我用了moveTo发现可能会有缺口,可一个曲线的起点和下一个曲线的起点应该重合才对(预期moveTo就好)。
if (i == 0) { path.moveTo(pointList.get(i * 3).x, pointList.get(i * 3).y); } else { path.lineTo(pointList.get(i * 3).x, pointList.get(i * 3).y); }

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

1 participant