Closed jpochyla closed 2 years ago
This fixes the gradient coloring on Mac. I'm not exactly sure why just switching to CGColorSpace::create_device_rgb() doesn't help, but I had to also avoid CGColor entirely and compose the gradient from the color components.
CGColorSpace::create_device_rgb()
CGColor
You'll need to update the piet-snapshots repo to include the new snapshots, there should be instructions in the CONTRIBUTING file (in this repo). :)
This fixes the gradient coloring on Mac. I'm not exactly sure why just switching to
CGColorSpace::create_device_rgb()
doesn't help, but I had to also avoidCGColor
entirely and compose the gradient from the color components.