final class Color extends AnyVal
Color provides a primitive wrapper around a Long representing a Color. This class takes up no more memory space than
a Long
value and can be used to work powerfully around RGBA values.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Color
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def alpha: Double
- def alphaHex: String
- def alphaInt: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blue: Double
- def blueHex: String
- def blueInt: Int
- def brightness: Double
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def green: Double
- def greenHex: String
- def greenInt: Int
- def hue: Double
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def red: Double
- def redHex: String
- def redInt: Int
- def saturation: Double
- def toHex: String
- def toRGBA: String
-
def
toString(): String
- Definition Classes
- Color → Any
- val value: Long
- def withAlpha(alpha: Double): Color
- def withBlue(blue: Double): Color
- def withBrightness(brightness: Double): Color
- def withGreen(green: Double): Color
- def withHue(hue: Double): Color
- def withRed(red: Double): Color
- def withSaturation(saturation: Double): Color