Skip to content

ConicGradient: add conic sample - #66

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

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
@hermet

hermet commented Sep 21, 2026

Copy link
Copy Markdown
Member

@Nor-s could you please update this?

@Nor-s
Nor-s marked this pull request as ready for review September 21, 2026 06:38
@Nor-s
Nor-s requested a review from tinyjin as a code owner September 21, 2026 06:38
Copilot AI review requested due to automatic review settings September 21, 2026 06:38
@Nor-s
Nor-s marked this pull request as draft September 21, 2026 06:40

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.

Copilot review overview

🟡 Changes recommended

Critical compilation issues remain in the content and keyboard callback APIs.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)
Resolved since last review (1)

Comment thread src/ConicGradient.cpp Outdated
Comment thread src/ConicGradient.cpp Outdated
Comment thread src/ConicGradient.cpp Outdated
@hermet
hermet marked this pull request as ready for review September 21, 2026 07:11
Copilot AI review requested due to automatic review settings September 21, 2026 07:11
@hermet

hermet commented Sep 21, 2026

Copy link
Copy Markdown
Member

Could you please include a similar number of colors in the example?
image

see: thorvg/thorvg#1216

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

Resolved since last review (3)

Copilot AI review requested due to automatic review settings September 21, 2026 07:24
@Nor-s

Nor-s commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

Could you please include a similar number of colors in the example? image

see: thorvg/thorvg#1216

@hermet I have updated. Thank you.

image

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

@hermet

hermet commented Sep 21, 2026

Copy link
Copy Markdown
Member

@Nor-s How about applying it to the center circle?

Copilot AI review requested due to automatic review settings September 21, 2026 07:49
@Nor-s

Nor-s commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

@Nor-s How about applying it to the center circle?

image

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

@hermet hermet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Nor-s please add tvgexam::verify() - api test for the conic specific functions.

Comment thread src/ConicGradient.cpp Outdated
Comment thread src/ConicGradient.cpp Outdated
Comment thread src/ConicGradient.cpp Outdated
@hermet

hermet commented Sep 21, 2026

Copy link
Copy Markdown
Member

see: #73

- Port the RadialGradient example to demonstrate conic gradients.
- Press Space to inspect the seam and verify the rendering quality.

Issue: thorvg/thorvg#4347
Copilot AI review requested due to automatic review settings September 21, 2026 20:03

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

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.

3 participants