Color

gdext.builtin.Color
See theColor companion class
object Color

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Color.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(): Color
def apply(c: Color, alpha: Float): Color
def apply(code: String): Color

From an HTML code or a color name (see fromString / html).

From an HTML code or a color name (see fromString / html).

Attributes

def apply(code: String, alpha: Float): Color
def fromHsv(h: Float, s: Float, v: Float, alpha: Float = ...): Color
def fromOkHsl(h: Float, s: Float, l: Float, alpha: Float = ...): Color
def fromRgba8(r8: Long, g8: Long, b8: Long, a8: Long = ...): Color
def fromRgbe9995(rgbe: Long): Color
def fromString(str: String, default: Color): Color

An HTML code or a named color (case and " -_'." ignored), else default.

An HTML code or a named color (case and " -_'." ignored), else default.

Attributes

def hex(hex: Long): Color

From a 32-bit RGBA integer, 0xRRGGBBAA.

From a 32-bit RGBA integer, 0xRRGGBBAA.

Attributes

def hex64(hex: Long): Color

From a 64-bit RGBA integer, 16 bits per channel.

From a 64-bit RGBA integer, 16 bits per channel.

Attributes

def html(rgba: String): Color

Parse #RGB, #RGBA, #RRGGBB or #RRGGBBAA (the # is optional).

Parse #RGB, #RGBA, #RRGGBB or #RRGGBBAA (the # is optional).

Attributes

def htmlIsValid(color: String): Boolean
def named(name: String, default: Color): Color

Exports

Defined exports

Exported from ColorNames
Exported from ColorNames
val AQUA: Color
Exported from ColorNames
Exported from ColorNames
val AZURE: Color
Exported from ColorNames
val BEIGE: Color
Exported from ColorNames
val BISQUE: Color
Exported from ColorNames
val BLACK: Color
Exported from ColorNames
Exported from ColorNames
val BLUE: Color
Exported from ColorNames
Exported from ColorNames
val BROWN: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val CORAL: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val CRIMSON: Color
Exported from ColorNames
val CYAN: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val FUCHSIA: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val GOLD: Color
Exported from ColorNames
Exported from ColorNames
val GRAY: Color
Exported from ColorNames
val GREEN: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val INDIGO: Color
Exported from ColorNames
val IVORY: Color
Exported from ColorNames
val KHAKI: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val LIME: Color
Exported from ColorNames
Exported from ColorNames
val LINEN: Color
Exported from ColorNames
val MAGENTA: Color
Exported from ColorNames
val MAROON: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val OLIVE: Color
Exported from ColorNames
Exported from ColorNames
val ORANGE: Color
Exported from ColorNames
Exported from ColorNames
val ORCHID: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val PERU: Color
Exported from ColorNames
val PINK: Color
Exported from ColorNames
val PLUM: Color
Exported from ColorNames
Exported from ColorNames
val PURPLE: Color
Exported from ColorNames
Exported from ColorNames
val RED: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val SALMON: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val SIENNA: Color
Exported from ColorNames
val SILVER: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val SNOW: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val TAN: Color
Exported from ColorNames
val TEAL: Color
Exported from ColorNames
val THISTLE: Color
Exported from ColorNames
val TOMATO: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val VIOLET: Color
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
Exported from ColorNames
val WHEAT: Color
Exported from ColorNames
val WHITE: Color
Exported from ColorNames
Exported from ColorNames
val YELLOW: Color
Exported from ColorNames
Exported from ColorNames
lazy private[builtin] val byNormalizedName: Map[String, Color]
Exported from ColorNames

Names without underscores, upper case (the Color.fromString lookup key).

Names without underscores, upper case (the Color.fromString lookup key).

Attributes