Skip to content

Pigmnts 0.6.0

Compare
Choose a tag to compare
@blenderskool blenderskool released this 13 Apr 10:56
· 26 commits to master since this release

The library has been updated with certain parameters for a potential speedup of the palette creation process. They include:

  • ⚠️ Max iterations limit: Limits the number of iterations made in the clustering process. It can be set via the max_iter parameter in pigments_pixels function. Defaults to 300.
  • Tolerance limit: Prevents additional iterations in the clustering step when the changes in the means are under the tolerance limit. Set to 0.0001.

Some minor additions:

  • New from_rgb method in LAB struct to create a LAB color directly from RGB values without intermediate RGB structs.

⚠️ - Breaking change