iphonedevnoob
iphonedevnoob

Reputation: 25

CGPath and Quartz 2D

I want to create a triangle using Quartz 2D functions. The 3 edges of the triangle should be in different colors. 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.

Upvotes: 0

Views: 480

Answers (1)

Jared Pochtar
Jared Pochtar

Reputation: 4985

I recommend making separate (line) paths for each side.

Upvotes: 1

Related Questions