I want to create a triangle using Quartz 2D functions. The 3 edges of the triangle should be in different co开发者_StackOverflow中文版lors. I am able to create the triangle but not able to set the color of each edge or subpath separately. Any suggestions or sample code are much appreciated.
I recommend making separate (line) paths for each side.
精彩评论