PaletteWeights constructor

const PaletteWeights({
  1. double chroma = 0.24,
  2. double tone = 0.52,
  3. double population = 0.24,
})

Creates a weight set. The three weights should sum to 1.0.

Implementation

const PaletteWeights({
  this.chroma = 0.24,
  this.tone = 0.52,
  this.population = 0.24,
});