Skip to content

Gradient Map Filter improvements

  • Format the structure of the code a bit and file names.
  • Change the gradient map filter to use cached gradients. For the Blend color mode it uses KoCachedGradient and for Nearest and Dithercolor modes it uses simple custom cached gradient classes.

Note: This makes the rendering faster but I've noticed that the widget used itself (KisStopGradientEditor) acts slowly, at least in master.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.

Merge request reports

Loading