Is it possible to get this kind of gradient in cocoa ?
I can use simple CGContextDrawRadialGradient
with clip made by CGContextAddEllipseInRect
but the effect will slightly different.
Is it any posibility to draw exact this shade/gradient?
Is it possible to get this kind of gradient in cocoa ?
I can use simple CGContextDrawRadialGradient
with clip made by CGContextAddEllipseInRect
but the effect will slightly different.
Is it any posibility to draw exact this shade/gradient?
I would use a radial gradient, and then apply a scale trasnformation such that the y coordinate is squiched, and the x remains.
There is an advanced topic where you can define your own gradients providing an callback that calculates the color or so. Ist stated in Core Graphics docu.