Skip to content

Add gradient interpolation C API for CSS Color Level 4#201

Open
mattleibow wants to merge 2 commits into
skiasharpfrom
dev/gradient-interpolation-colorspace
Open

Add gradient interpolation C API for CSS Color Level 4#201
mattleibow wants to merge 2 commits into
skiasharpfrom
dev/gradient-interpolation-colorspace

Conversation

@mattleibow

Copy link
Copy Markdown
Collaborator

Companion PR for mono/SkiaSharp#3773

Adds C API types and functions for gradient interpolation color space support:

  • sk_gradient_interpolation_colorspace_t enum (11 CSS Color Level 4 spaces)
  • sk_gradient_interpolation_huemethod_t enum (4 hue methods)
  • sk_gradient_interpolation_t struct
  • 4 new sk_shader_new_*_gradient_interpolation functions
  • AsInterpolation helper using the new m147 SkGradient API

mattleibow and others added 2 commits April 28, 2026 04:57
Add sk_gradient_interpolation_colorspace_t, sk_gradient_interpolation_huemethod_t
enums and sk_gradient_interpolation_t struct. Add four new gradient shader functions
that accept interpolation parameters for CSS Color Level 4 color space support.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adapt AsInterpolation helper and all 4 interpolation gradient functions
to use the new SkGradient/SkShaders API introduced in m147.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant