Skip to content

feat: add CGColorSpace and color conversions - #12

Merged
Kyle-Ye merged 1 commit into
mainfrom
optimize/cgcolor
Oct 25, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
optimize/cgcolor

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 25, 2026

Copy link
Copy Markdown
Member

Add named CGColorSpace support and the CGColor APIs needed to construct and convert colors between sRGB, extended and linear sRGB, Display P3, and generic RGB/gray spaces. Preserve extended component ranges, color-space identity, and alpha-copy behavior.

Add shared compatibility coverage for conversion boundaries, grayscale handling, and gamut clipping. The 29 CGColor tests pass against native CoreGraphics and OpenCoreGraphics on macOS, and against OpenCoreGraphics on Linux. iOS and visionOS Simulator type checks also pass.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.32%. Comparing base (0d7a0d0) to head (5bc6205).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
+ Coverage   74.83%   81.32%   +6.49%     
==========================================
  Files          16       19       +3     
  Lines         751     1012     +261     
==========================================
+ Hits          562      823     +261     
  Misses        189      189              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit 3440823 into main Oct 25, 2026
3 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/cgcolor branch October 25, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants