Package-level declarations

Color-matching types used by NextColorDistanceSensor: NextColor, an immutable RGB/HSV value, and ColorProfile, which defines a target color and tolerance for matching sensor readings.

Types

Link copied to clipboard
data class ColorProfile(val space: ColorSpace, val color: NextColor, val tolerance: NextColor)

Describes a target color and the per-channel tolerances used to decide whether a sensor reading is a match.

Link copied to clipboard
Link copied to clipboard
data class NextColor(val red: Float, val green: Float, val blue: Float)

Stores a color. Use rgb if you have red, green, and blue values, or hsv if you have hue, saturation, and brightness values.