Skip to content

[WIP] Add support for Oklab, OkHSV, and OkLCH color spaces#296

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/add-oklab-okhsv-oklch-support
Draft

[WIP] Add support for Oklab, OkHSV, and OkLCH color spaces#296
Copilot wants to merge 1 commit intomainfrom
copilot/add-oklab-okhsv-oklch-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 12, 2026

  • Explore existing colorlib.rb code and reference implementation
  • Set up linting baseline (rubocop passes)
  • Implement OklabColor class (Data.define(:l, :a, :b)) with conversions to/from linear sRGB
  • Implement OkLCHColor class (Data.define(:l, :c, :h)) with conversions to/from Oklab
  • Implement OkHSV helper functions (toe, toe_inv, compute_max_saturation, find_cusp, etc.)
  • Implement OkHSVColor class (Data.define(:h, :s, :v)) with conversions to/from sRGB
  • Add to_oklab method to SRGBLinearColor
  • Add to_oklab, to_oklch, to_okhsv convenience methods to SRGBColor
  • Update RBS type signatures in sig/lib/qbot/colorlib.rbs
  • Run rubocop and fix any offenses
  • Verify conversions with a quick Ruby script (roundtrip tests)
  • Run code_review and codeql_checker

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

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