Colors

object Colors(source)

A collection of convenience methods and predefined colors for working with the color field in embeds.

Properties

Link copied to clipboard
const val ALICEBLUE: Int = 15792383
Link copied to clipboard
const val ANTIQUEWHITE: Int = 16444375
Link copied to clipboard
const val AQUA: Int = 65535
Link copied to clipboard
const val AQUAMARINE: Int = 8388564
Link copied to clipboard
const val AZURE: Int = 15794175
Link copied to clipboard
const val BEIGE: Int = 16119260
Link copied to clipboard
const val BISQUE: Int = 16770244
Link copied to clipboard
const val BLACK: Int = 0
Link copied to clipboard
const val BLANCHEDALMOND: Int = 16772045
Link copied to clipboard
const val BLUE: Int = 255
Link copied to clipboard
const val BLUEVIOLET: Int = 9055202
Link copied to clipboard
const val BROWN: Int = 10824234
Link copied to clipboard
const val BURLYWOOD: Int = 14596231
Link copied to clipboard
const val CADETBLUE: Int = 6266528
Link copied to clipboard
const val CHARTREUSE: Int = 8388352
Link copied to clipboard
const val CHOCOLATE: Int = 13789470
Link copied to clipboard
const val CORAL: Int = 16744272
Link copied to clipboard
const val CORNFLOWERBLUE: Int = 6591981
Link copied to clipboard
const val CORNSILK: Int = 16775388
Link copied to clipboard
const val CRIMSON: Int = 14423100
Link copied to clipboard
const val CYAN: Int = 65535
Link copied to clipboard
const val DARKBLUE: Int = 139
Link copied to clipboard
const val DARKCYAN: Int = 35723
Link copied to clipboard
const val DARKGOLDENROD: Int = 12092939
Link copied to clipboard
const val DARKGRAY: Int = 11119017
Link copied to clipboard
const val DARKGREEN: Int = 25600
Link copied to clipboard
const val DARKKHAKI: Int = 12433259
Link copied to clipboard
const val DARKMAGENTA: Int = 9109643
Link copied to clipboard
const val DARKOLIVEGREEN: Int = 5597999
Link copied to clipboard
const val DARKORANGE: Int = 16747520
Link copied to clipboard
const val DARKORCHID: Int = 10040012
Link copied to clipboard
const val DARKRED: Int = 9109504
Link copied to clipboard
const val DARKSALMON: Int = 15308410
Link copied to clipboard
const val DARKSEAGREEN: Int = 9419915
Link copied to clipboard
const val DARKSLATEBLUE: Int = 4734347
Link copied to clipboard
const val DARKSLATEGRAY: Int = 3100495
Link copied to clipboard
const val DARKTURQUOISE: Int = 52945
Link copied to clipboard
const val DARKVIOLET: Int = 9699539
Link copied to clipboard
const val DEEPPINK: Int = 16716947
Link copied to clipboard
const val DEEPSKYBLUE: Int = 49151
Link copied to clipboard
const val DIMGRAY: Int = 6908265
Link copied to clipboard
const val DODGERBLUE: Int = 2003199
Link copied to clipboard
const val FIREBRICK: Int = 11674146
Link copied to clipboard
const val FLORALWHITE: Int = 16775920
Link copied to clipboard
const val FORESTGREEN: Int = 2263842
Link copied to clipboard
const val FUCHSIA: Int = 16711935
Link copied to clipboard
const val GAINSBORO: Int = 14474460
Link copied to clipboard
const val GHOSTWHITE: Int = 16316671
Link copied to clipboard
const val GOLD: Int = 16766720
Link copied to clipboard
const val GOLDENROD: Int = 14329120
Link copied to clipboard
const val GRAY: Int = 8421504
Link copied to clipboard
const val GREEN: Int = 32768
Link copied to clipboard
const val GREENYELLOW: Int = 11403055
Link copied to clipboard
const val HONEYDEW: Int = 15794160
Link copied to clipboard
const val HOTPINK: Int = 16738740
Link copied to clipboard
const val INDIANRED: Int = 13458524
Link copied to clipboard
const val INDIGO: Int = 4915330
Link copied to clipboard
const val IVORY: Int = 16777200
Link copied to clipboard
const val KHAKI: Int = 15787660
Link copied to clipboard
const val LAVENDER: Int = 15132410
Link copied to clipboard
const val LAVENDERBLUSH: Int = 16773365
Link copied to clipboard
const val LAWNGREEN: Int = 8190976
Link copied to clipboard
const val LEMONCHIFFON: Int = 16775885
Link copied to clipboard
const val LIGHTBLUE: Int = 11393254
Link copied to clipboard
const val LIGHTCORAL: Int = 15761536
Link copied to clipboard
const val LIGHTCYAN: Int = 14745599
Link copied to clipboard
const val LIGHTGOLDENRODYELLOW: Int = 16448210
Link copied to clipboard
const val LIGHTGRAY: Int = 13882323
Link copied to clipboard
const val LIGHTGREEN: Int = 9498256
Link copied to clipboard
const val LIGHTPINK: Int = 16758465
Link copied to clipboard
const val LIGHTSALMON: Int = 16752762
Link copied to clipboard
const val LIGHTSEAGREEN: Int = 2142890
Link copied to clipboard
const val LIGHTSKYBLUE: Int = 8900346
Link copied to clipboard
const val LIGHTSLATEGRAY: Int = 7833753
Link copied to clipboard
const val LIGHTSTEELBLUE: Int = 11584734
Link copied to clipboard
const val LIGHTYELLOW: Int = 16777184
Link copied to clipboard
const val LIME: Int = 65280
Link copied to clipboard
const val LIMEGREEN: Int = 3329330
Link copied to clipboard
const val LINEN: Int = 16445670
Link copied to clipboard
const val MAGENTA: Int = 16711935
Link copied to clipboard
const val MAROON: Int = 8388608
Link copied to clipboard
const val MEDIUMAQUAMARINE: Int = 6737322
Link copied to clipboard
const val MEDIUMBLUE: Int = 205
Link copied to clipboard
const val MEDIUMORCHID: Int = 12211667
Link copied to clipboard
const val MEDIUMPURPLE: Int = 9662683
Link copied to clipboard
const val MEDIUMSEAGREEN: Int = 3978097
Link copied to clipboard
const val MEDIUMSLATEBLUE: Int = 8087790
Link copied to clipboard
const val MEDIUMSPRINGGREEN: Int = 64154
Link copied to clipboard
const val MEDIUMTURQUOISE: Int = 4772300
Link copied to clipboard
const val MEDIUMVIOLETRED: Int = 13047173
Link copied to clipboard
const val MIDNIGHTBLUE: Int = 1644912
Link copied to clipboard
const val MINTCREAM: Int = 16121850
Link copied to clipboard
const val MISTYROSE: Int = 16770273
Link copied to clipboard
const val MOCCASIN: Int = 16770229
Link copied to clipboard
const val NAVAJOWHITE: Int = 16768685
Link copied to clipboard
const val NAVY: Int = 128
Link copied to clipboard
const val OLDLACE: Int = 16643558
Link copied to clipboard
const val OLIVE: Int = 8421376
Link copied to clipboard
const val OLIVEDRAB: Int = 7048739
Link copied to clipboard
const val ORANGE: Int = 16753920
Link copied to clipboard
const val ORANGERED: Int = 16729344
Link copied to clipboard
const val ORCHID: Int = 14315734
Link copied to clipboard
const val PALEGOLDENROD: Int = 15657130
Link copied to clipboard
const val PALEGREEN: Int = 10025880
Link copied to clipboard
const val PALETURQUOISE: Int = 11529966
Link copied to clipboard
const val PALEVIOLETRED: Int = 14381203
Link copied to clipboard
const val PAPAYAWHIP: Int = 16773077
Link copied to clipboard
const val PEACHPUFF: Int = 16767673
Link copied to clipboard
const val PERU: Int = 13468991
Link copied to clipboard
const val PINK: Int = 16761035
Link copied to clipboard
const val PLUM: Int = 14524637
Link copied to clipboard
const val POWDERBLUE: Int = 11591910
Link copied to clipboard
const val PURPLE: Int = 8388736
Link copied to clipboard
const val REBECCAPURPLE: Int = 6697881
Link copied to clipboard
const val RED: Int = 16711680
Link copied to clipboard
const val ROSYBROWN: Int = 12357519
Link copied to clipboard
const val ROYALBLUE: Int = 4286945
Link copied to clipboard
const val SADDLEBROWN: Int = 9127187
Link copied to clipboard
const val SALMON: Int = 16416882
Link copied to clipboard
const val SANDYBROWN: Int = 16032864
Link copied to clipboard
const val SEAGREEN: Int = 3050327
Link copied to clipboard
const val SEASHELL: Int = 16774638
Link copied to clipboard
const val SIENNA: Int = 10506797
Link copied to clipboard
const val SILVER: Int = 12632256
Link copied to clipboard
const val SKYBLUE: Int = 8900331
Link copied to clipboard
const val SLATEBLUE: Int = 6970061
Link copied to clipboard
const val SLATEGRAY: Int = 7372944
Link copied to clipboard
const val SNOW: Int = 16775930
Link copied to clipboard
const val SPRINGGREEN: Int = 65407
Link copied to clipboard
const val STEELBLUE: Int = 4620980
Link copied to clipboard
const val TAN: Int = 13808780
Link copied to clipboard
const val TEAL: Int = 32896
Link copied to clipboard
const val THISTLE: Int = 14204888
Link copied to clipboard
const val TOMATO: Int = 16737095
Link copied to clipboard
const val TURQUOISE: Int = 4251856
Link copied to clipboard
const val VIOLET: Int = 15631086
Link copied to clipboard
const val WHEAT: Int = 16113331
Link copied to clipboard
const val WHITE: Int = 16777215
Link copied to clipboard
const val WHITESMOKE: Int = 16119285
Link copied to clipboard
const val YELLOW: Int = 16776960
Link copied to clipboard
const val YELLOWGREEN: Int = 10145074

Functions

Link copied to clipboard
fun hex(hex: Int): Color

Creates a Color instance which represents the specified hex value.

fun hex(hex: String): Color

Creates a Color instance which represents the specified hex string (e.g. #FF0000).

Link copied to clipboard
fun rgb(red: Double, green: Double, blue: Double): Color
fun rgb(red: Float, green: Float, blue: Float): Color
fun rgb(red: Int, green: Int, blue: Int): Color

Creates a Color instance which represents the specified red, green, and blue values.

Link copied to clipboard
fun toRGB(color: Color): Triple<Int, Int, Int>

Converts a Color instance into a kotlin.Triple containing the red, green, and blue values of the color.