Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7897425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:09:47+00:00 2026-06-03T08:09:47+00:00

For an image editing application i’m trying to draw a gradient around a closed

  • 0

For an image editing application i’m trying to draw a gradient around a closed natural cubic spline.
The spline is drawn according to the algorithm and code explained here.

The outcome should look like this (created with GIMP using lots of gaussian blur).

As i could not find any suitable algorithm to determine the distance from the spline, i tought of the following algorithm:

  1. Mark some key points on the spline
  2. Grow or enlarge these points with reference to the center of the closed spline
  3. Create a mesh of triangles between the inner points and the outer points. These
    triangles will have the inner vertexes black, and the outer vertexes
    white.

As you can see, this solution is quite complex (will probably have to rely on OpenGL) and hence suboptimal.

Can anybody come up with a simpler solution?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:09:49+00:00Added an answer on June 3, 2026 at 8:09 am

    It seems you need to build distance transform map outside the spline. Some code for doing it. It is implemented in OpenCV library too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing an image editing application using Flex and I'm trying to make
I am trying to build an image editing application for android. As there are
I have an image editing application, and I have custom adorners which get added
I'm creating an image editing application for iphone. i would like to enable the
I'm developing an image editing application for iphone. I've seen many questions similar to
Hi i am working on image editing application using cocos2d. when i used to
I have an application in which I need to implement image editing, which also
I'm using a file open dialog to chose image files for further editing. The
I am editing a custom calendar application in flash. The purpose of this app
I'm editing a ListViewItem template and I'm trying to add a custom control to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.