Target

class Target

A class which allows custom selection of colors in a Palette's generation. Instances can be created via the Builder class.

To use the target, use the Palette.Builder.addTarget API when building a Palette.

Types

Link copied to clipboard
class Builder(target: Target = Target())

Builder class for generating custom Target instances.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns whether any color selected for this target is exclusive for this target only.

Link copied to clipboard
Link copied to clipboard

Returns the weight of importance that this target places on a color's lightness within the image.

Link copied to clipboard

The maximum lightness value for this target.

Link copied to clipboard

The maximum saturation value for this target.

Link copied to clipboard

The minimum lightness value for this target.

Link copied to clipboard

The minimum saturation value for this target.

Link copied to clipboard

Returns the weight of importance that this target places on a color's population within the image.

Link copied to clipboard
Link copied to clipboard

Returns the weight of importance that this target places on a color's saturation within the image.

Link copied to clipboard

The target lightness value for this target.

Link copied to clipboard

The target saturation value for this target.

Link copied to clipboard

Functions

Link copied to clipboard