trying to work out how to make a beautiful gradient away or towards the edges of any random shape.
i figured use ofPolyline and cycle though all x y point and always check distance to closest point of polyline. but pLine.getClosestPoint(myP) is the closest vertex in the polyline and does not consider any inbetween points.
also dist method seems very slow. nowhere near real time.
saw this post by zack liebermann. which is not a simple circle.