p
coloring
package coloring
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- sealed trait CMYKChannel extends Channel
- case class CMYKColor(cyan: Int, magenta: Int, yellow: Int, key: Int) extends DigitalColor[CMYKChannel, Int, CMYKColor] with Product with Serializable
- sealed trait Channel extends AnyRef
Represents the available RGB color channels.
Represents the available RGB color channels. Each channel corresponds to one component of the RGB color model.
- trait DigitalColor[C <: Channel, V, Self <: DigitalColor[C, V, Self]] extends AnyRef
- sealed trait RGBChannel extends Channel
- case class RGBColor(red: Int, green: Int, blue: Int, alpha: Int = 255) extends DigitalColor[RGBChannel, Int, RGBColor] with Product with Serializable
Represents an RGB color with red, green, and blue components.
Represents an RGB color with red, green, and blue components.
- red
the intensity of the red channel (0–255)
- green
the intensity of the green channel (0–255)
- blue
the intensity of the blue channel (0–255)
Value Members
- case object Alpha extends RGBChannel with Product with Serializable
- case object Blue extends RGBChannel with Product with Serializable
Represents the blue channel of an RGB color.
- case object Cyan extends CMYKChannel with Product with Serializable
- case object Green extends RGBChannel with Product with Serializable
Represents the green channel of an RGB color.
- case object Key extends CMYKChannel with Product with Serializable
- case object Magenta extends CMYKChannel with Product with Serializable
- object RGBColor extends Serializable
Companion object for RGBColor providing utility factory methods.
- case object Red extends RGBChannel with Product with Serializable
Represents the red channel of an RGB color.
- case object Yellow extends CMYKChannel with Product with Serializable