Skip to content
#

conical-gradient

Here are 7 public repositories matching this topic...

Language: All
Filter by language
Thomasch
Thomasch commented Oct 2, 2018

When I changed to use P3 wide colors in our app, I noticed that the gradients didn't use that color space.

I looked through the code and saw that MKGradientGenerator uses CGColorSpaceCreateDeviceRGB. I changed that to CGColorSpace(name: CGColorSpace.displayP3) and the gradient was displaying in P3.

Maybe you can add a parameter (with default value) or get the color space from the start/end

Improve this page

Add a description, image, and links to the conical-gradient topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the conical-gradient topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.