Skip to content

关于HeartView的moveTo和lineTo #3

@drogbababa

Description

@drogbababa

作者您好,我在看您的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); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions