Im working on rendering a graph in app. Working with the data (drawing the dots, and lines between dots) is covered, what I am interested in is mapping this data ontop of a graphic.
Firstly, let me show you what I want to do (see below), the solution is that the graph base has a gradient.
I presume the solution is to just take a block image of the gradient, and just cut the edges in code (somehow).
Is there an existing algorithm (Objective-C) that will do this?
Thanks