Color

data class Color(val red: Int, val green: Int, val blue: Int, val alpha: Double = MAX_ALPHA) : RenderRepresentable

A color with red, green, blue and alpha components.

Parameters

red

red component (0-255)

green

green component (0-255)

blue

blue component (0-255)

alpha

alpha component (0.0-1.0)

Constructors

Link copied to clipboard
constructor(red: Int, green: Int, blue: Int, alpha: Double = MAX_ALPHA)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val blue: Int
Link copied to clipboard
val green: Int
Link copied to clipboard
val red: Int

Functions

Link copied to clipboard
open override fun <T> accept(visitor: RenderRepresentableVisitor<T>): T

Accepts a visitor to produce a representation of this element suitable for the rendered document.