1. 03 Oct, 2018 1 commit
    • Ell's avatar
      Issue #2303 - Please add Constant type of gradient interpolation ... · 68bf99e8
      Ell authored
      ... to make multi-color hard-edge gradient fills possible
      Add a new "step" gradient-segment blending function, which is 0
      before the midpoint, and 1 at, and after, the midpoint.  This
      creates a hard-edge transition between the two adjacent color stops
      at the midpoint.  Creating such a transition was already possible,
      but required duplicating the same color at the opposing ends of two
      adjacent stops, which is cumbersome.
  2. 11 Jul, 2018 1 commit
  3. 14 Apr, 2018 2 commits
  4. 13 Apr, 2018 2 commits
  5. 16 Nov, 2017 1 commit
    • Ell's avatar
      app: improve elimination of trivial blend-tool edit actions · 6036217d
      Ell authored
      ... from the undo stack
      When a blend-tool edit action modifies the gradient, do a deep
      comparison of the original gradient against the current gradient,
      to test if anything changed, instead of just assuming that
      something did change.
  6. 05 Nov, 2017 1 commit
    • Ell's avatar
      app: port GimpData subclasses from ::duplicate() to ::copy() · 880d3bd1
      Ell authored
      Finish up commit 17583ff0, which
      ported GimpGradient from ::duplicate() to ::copy(), by doing the
      same for the rest of the GimpData subclasses that implement
      We still keep GimpData's ::duplicate() virtual function around,
      even though it now points to the default implementation (which uses
      ::copy()) for all subclasses, since ::copy() is stronger than
      ::duplicate(), and we might want to have certain GimpData types
      that are duplicatable, but not copyable.
  7. 09 Oct, 2017 9 commits
    • Ell's avatar
      app: improve curved gradient segment sampling · 1f3030eb
      Ell authored
      Improve the sampling performance of curved gradient segments, and
      its behavior when the segment's midpoint is close to one of its
    • Ell's avatar
      app: improve num. stability of gimp_gradient_segment_range_compress() · 1b2a395e
      Ell authored
      When using gimp_gradient_segment_range_compress() to expand a 0-
      length segment, redistribute the range's endpoints and midpoints
      uniformly, rather than using the regular code path, which would
      result in NaN values.
      Make sure that the left and right endpoints of the range are
      *exactly* equal to the new left and right values.  Previously,
      they could be slightly off due to numerical errors.
    • Ell's avatar
      app: treat gradient segments as clopen ranges · 3aff0a1a
      Ell authored
      Treat gradient segment exents as [left, right) ranges, instead of
      [left, right], so that they don't overlap, and each point
      corresponds to a unique color.
      Perform less comparisons in gimp_gradient_get_segment_at_internal().
    • Ell's avatar
      app: add gimp_gradient_segment_range_merge() · d710773a
      Ell authored
      ... which merges a segment range into a single segment, that spans
      the entire range, and has the same endpoint colors.  The merged
      segment's midpoint is at its center, and its blend function and
      coloring type are those of the range's segments if they're uniform,
      or the default ones otherwise.
    • Ell's avatar
      app: add gimp_gradient_segment_range_get_n_segments() · 082f6a41
      Ell authored
      ... which returns the number of segments in a range.
    • Ell's avatar
      app: add gimp_gradient_split_at() · c5faf027
      Ell authored
      ... which splits a gradient segment at an arbitrary position.
      Implement gimp_gradient_segment_split_midpoint() in terms of the new
    • Ell's avatar
      app: add gimp_gradient_segment_get_{left,right}_flat_color() · 6840daba
      Ell authored
      ... which returns the flat (context-independent) left and right
      colors of a egment.  Replace code that calculates the flat color
      explicitly with calls to these functions.
    • Ell's avatar
      app: implement compare() for GimpGradient · 6971b893
      Ell authored
      Order the custom gradient before all the other gradients, and use
      the default ordering for the rest.
    • Ell's avatar
      app: implement copy() for GimpGradient · 17583ff0
      Ell authored
      ... instead of duplicate().
  8. 10 Jul, 2016 1 commit
  9. 22 Jul, 2014 1 commit
  10. 15 May, 2014 1 commit
  11. 06 May, 2014 1 commit
  12. 03 May, 2012 1 commit
  13. 02 May, 2012 6 commits
  14. 28 Apr, 2011 1 commit
  15. 24 Jun, 2010 1 commit
  16. 10 Apr, 2010 1 commit
  17. 05 Apr, 2010 1 commit
  18. 04 Apr, 2010 1 commit
  19. 31 Oct, 2009 1 commit
  20. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      	* all files with a GPL header and all COPYING files:
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      svn path=/trunk/; revision=27913
  21. 13 Dec, 2008 2 commits
    • Martin Nordholts's avatar
      Bug 555954 – Merge Tagging of Gimp Resources GSoC Project · 364d2cd8
      Martin Nordholts authored
      Partial merge of code from Aurimas Juška.
      * app/core/gimpdata.c: Implement GimpTagged::get_identifier() and
      * app/core/gimpbrush.c: 
      * app/core/gimpgradient.c
      * app/core/gimppalette.c
      * app/core/gimppattern.c: Implement GimpTagged::get_checksum().
      They all use the GimpData implementation of
      svn path=/trunk/; revision=27784
    • Martin Nordholts's avatar
      s/temp_buf_data/temp_buf_get_data/ · ddaa0b48
      Martin Nordholts authored
      * app/base/pixel-region.c
      * app/base/temp-buf.c
      * app/base/temp-buf.h
      * app/core/gimpbrush-load.c
      * app/core/gimpbrush-scale.c
      * app/core/gimpbrush.c
      * app/core/gimpbrushgenerated.c
      * app/core/gimpgradient.c
      * app/core/gimpimage.c
      * app/core/gimppalette.c
      * app/core/gimppattern-load.c
      * app/core/gimppattern.c
      * app/core/gimppreviewcache.c
      * app/core/gimpviewable.c
      * app/paint-funcs/paint-funcs-generic.h
      * app/paint/gimpbrushcore.c
      * app/paint/gimpclone.c
      * app/paint/gimperaser.c
      * app/paint/gimpheal.c
      * app/paint/gimpink.c
      * app/paint/gimppaintbrush.c
      * app/pdb/brush-cmds.c
      * app/pdb/brushes-cmds.c
      * app/pdb/drawable-cmds.c
      * app/pdb/image-cmds.c
      * app/pdb/pattern-cmds.c
      * app/pdb/patterns-cmds.c
      * app/text/gimpfont.c
      * app/tools/gimpiscissorstool.c
      * app/vectors/gimpvectors-preview.c
      * app/widgets/gimpbrushselect.c
      * app/widgets/gimppatternselect.c
      * app/widgets/gimpviewrenderer.c
      svn path=/trunk/; revision=27782
  22. 12 Dec, 2008 1 commit
    • Martin Nordholts's avatar
      Bug 555954 – Merge Tagging of Gimp Resources GSoC Project · 70ed5218
      Martin Nordholts authored
      Partial merge of code from Aurimas Juška.
      * app/core/gimpdata.[ch] (gimp_data_make_internal): Add an
      'identifier' parameter/instance struct member that can be used to
      identify the internal GimpData object across sessions. It is the
      internal-object counterpart to a file path.
      * app/core/gimp.c
      * app/core/gimpcurve.c
      * app/core/gimpbrush.c
      * app/core/gimppattern.c
      * app/core/gimppalette.c
      * app/core/gimpgradient.c
      * app/core/gimp-gradients.c: Assign an identifier to the the
      internal GimpData objects.
      svn path=/trunk/; revision=27781
  23. 12 Sep, 2008 1 commit
    • Michael Natterer's avatar
      changed GimpBrush::get_extension() to return const gchar* instead of · c985f2e2
      Michael Natterer authored
      2008-09-12  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpdata.h: changed GimpBrush::get_extension() to return
      	const gchar* instead of gchar*
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpcurve.c
      	* app/core/gimpgradient.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: changed accordingly.
      svn path=/trunk/; revision=26935
  24. 25 Aug, 2008 1 commit
    • Sven Neumann's avatar
      fixed rounding errors in color conversion. · e607d2ce
      Sven Neumann authored
      2008-08-25  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpgradient.c (gimp_gradient_get_new_preview): fixed
      	rounding errors in color conversion.
      svn path=/trunk/; revision=26758