Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好我正在尝试根据每个角的颜色实现一个具有颜色渐变的多边形(多边形是地图的叠加层)。到目前为止,我一直在使用 MKPolygon。任何指导将不胜感激。
谢谢,
为了实现我的结果,我编写了一个遍历所有点的 for 循环,其中有一个 for 循环,它从其他点中减去一个值以使多边形更小并创建一个多边形,直到多边形足够小看法。这给了它一个很好的渐变,并且为具有不同颜色的其他角膜做它给出了所需的颜色渐变。