Builder

class Builder(target: Target = Target())

Builder class for generating custom Target instances.

Constructors

Link copied to clipboard
constructor(target: Target = Target())

Functions

Link copied to clipboard
fun build(): Target

Builds and returns the resulting Target.

Link copied to clipboard

Set whether any color selected for this target is exclusive to this target only. Defaults to true.

Link copied to clipboard

Set the weight of importance that this target will place on lightness values.

Link copied to clipboard

Set the maximum lightness value for this target.

Link copied to clipboard

Set the maximum saturation value for this target.

Link copied to clipboard

Set the minimum lightness value for this target.

Link copied to clipboard

Set the minimum saturation value for this target.

Link copied to clipboard

Set the weight of importance that this target will place on a color's population within the image.

Link copied to clipboard

Set the weight of importance that this target will place on saturation values.

Link copied to clipboard

Set the target/ideal lightness value for this target.

Link copied to clipboard

Set the target/ideal saturation value for this target.