RSS/Atom feed Twitter
Site is read-only, email is disabled

shaped angular gradient math

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

shaped angular gradient math Christopher Howard 06 Aug 22:14
Christopher Howard
2012-08-06 22:14:41 UTC (over 12 years ago)

shaped angular gradient math

Hi. This is a purely educational question, but which file in the source code contains the formula / algorithm that decides how to paint your shaped angular gradients? I noticed that gimp allows you to a select any arbitrary area on the canvas and fit a gradient to it in Shaped mode, and I was curious what formula was used to calculate the point / color distribution. I downloaded recent source code, but I am admittedly rather lost, finding lots of gradient-related interface code but not what I am looking for.

frigidcode.com
indicium.us