Skip to content

ConicGradient: add conic sample - #66

Draft
Nor-s wants to merge 1 commit into
mainfrom
nor-s/conic
Draft

ConicGradient: add conic sample#66
Nor-s wants to merge 1 commit into
mainfrom
nor-s/conic

Conversation

@Nor-s

@Nor-s Nor-s commented Aug 24, 2026

Copy link
Copy Markdown
Member
  • Port the RadialGradient example to demonstrate conic gradients.
  • Press Space to inspect the seam and verify the rendering quality.

Issue: thorvg/thorvg#4347

Screenshot

Screen.Recording.2026-08-24.at.13.25.09.mov

Copilot AI lite review requested due to automatic review settings August 24, 2026 04:25
@Nor-s
Nor-s requested a review from hermet as a code owner August 24, 2026 04:25
@Nor-s Nor-s self-assigned this Aug 24, 2026
@Nor-s Nor-s added the addition Adding a new example label Aug 24, 2026
@Nor-s
Nor-s marked this pull request as draft August 24, 2026 04:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new ThorVG example demonstrating conic gradients (ported from the existing radial gradient sample) with an interactive seam/angle inspection mode to help validate rendering quality.

Changes:

  • Introduces a new ConicGradient example rendering multiple shapes with conic gradient fills.
  • Adds Space-key handling to rotate the conic gradient angle for seam inspection.
  • Registers the new example source in the Meson build.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/meson.build Adds ConicGradient.cpp to the example build sources.
src/ConicGradient.cpp New conic gradient example with interactive angle adjustment via Space key.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/ConicGradient.cpp Outdated
- Port the RadialGradient example to demonstrate conic gradients.
- Press Space to inspect the seam and verify the rendering quality.

Issue: thorvg/thorvg#4347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition Adding a new example

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants