Rgb

object Rgb
Companion:
class
class Object
trait Matchable
class Any
Rgb.type

Type members

Classlikes

object Blue
object Green
object Red

Types

type Blue = Blue
type Green = Green
type Red = Red

Value members

Concrete methods

inline def apply(rgb: Int): Rgb
def fromHexString(hex: String): Either[String, Rgb]
def fromInt(rgb: Int): Either[String, Rgb]
def fromRgbInts(red: Int, green: Int, blue: Int): Either[String, Rgb]
def unapply(rgb: Rgb): Option[(Red, Green, Blue)]
@SuppressWarnings(scala.Array.apply[java.lang.String]("org.wartremover.warts.Throw")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
def unsafeFromHexString(hex: String): Rgb
def unsafeFromInt(rgb: Int): Rgb
@SuppressWarnings(scala.Array.apply[java.lang.String]("org.wartremover.warts.Throw")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
def unsafeFromRgbInts(red: Int, green: Int, blue: Int): Rgb

Concrete fields

val BlueBits: Int
val GreenBits: Int
val RedBits: Int
val RgbBits: Int

Givens

Givens

given derived$CanEqual: CanEqual[Rgb, Rgb]

Extensions

Extensions

extension (rgb: Rgb)
def blue: Blue
def blue(value: Int): Rgb
def color(s: String): String
def colored(s: String): String
def green(value: Int): Rgb
def red: Red
def red(value: Int): Rgb
def toAsciiEsc: String
def toHex: String
def toHexHtml: String
def toRgbInts: (Int, Int, Int)