Package dev.kdrag0n.colorkt.rgb

Types

LinearSrgb
Link copied to clipboard
data class LinearSrgb(r: Double, g: Double, b: Double) : Rgb

Linear representation of dev.kdrag0n.colorkt.rgb.Srgb. This is useful as an intermediate color space for conversions.

Rgb
Link copied to clipboard
interface Rgb : Color

Common interface for color spaces that express color with the following 3 components:

Srgb
Link copied to clipboard
data class Srgb(r: Double, g: Double, b: Double) : Rgb

A color in the standard sRGB color space. This is the most common device color space, usually used for final output colors.