//qrcode-kotlin/qrcode/Colors

Colors

object Colors

Just a lot of colors to use when drawing :)

The constants are all the CSS colors, taken from https://www.w3schools.com/colors/colors_names.asp

Author

Rafael Lins - g0dkar

See also

 
Colors.css
Colors.withAlpha

Properties

Name Summary
ALICE_BLUE [common]
const val ALICE_BLUE: Int
ANTIQUE_WHITE [common]
const val ANTIQUE_WHITE: Int
AQUA [common]
const val AQUA: Int
AQUAMARINE [common]
const val AQUAMARINE: Int
AZURE [common]
const val AZURE: Int
BEIGE [common]
const val BEIGE: Int
BISQUE [common]
const val BISQUE: Int
BLACK [common]
const val BLACK: Int
BLANCHED_ALMOND [common]
const val BLANCHED_ALMOND: Int
BLUE [common]
const val BLUE: Int
BLUE_VIOLET [common]
const val BLUE_VIOLET: Int
BROWN [common]
const val BROWN: Int
BURLY_WOOD [common]
const val BURLY_WOOD: Int
CADET_BLUE [common]
const val CADET_BLUE: Int
CHARTREUSE [common]
const val CHARTREUSE: Int
CHOCOLATE [common]
const val CHOCOLATE: Int
CORAL [common]
const val CORAL: Int
CORNFLOWER_BLUE [common]
const val CORNFLOWER_BLUE: Int
CORNSILK [common]
const val CORNSILK: Int
CRIMSON [common]
const val CRIMSON: Int
CYAN [common]
const val CYAN: Int
DARK_BLUE [common]
const val DARK_BLUE: Int
DARK_CYAN [common]
const val DARK_CYAN: Int
DARK_GOLDEN_ROD [common]
const val DARK_GOLDEN_ROD: Int
DARK_GRAY [common]
const val DARK_GRAY: Int
DARK_GREEN [common]
const val DARK_GREEN: Int
DARK_GREY [common]
const val DARK_GREY: Int
DARK_KHAKI [common]
const val DARK_KHAKI: Int
DARK_MAGENTA [common]
const val DARK_MAGENTA: Int
DARK_OLIVE_GREEN [common]
const val DARK_OLIVE_GREEN: Int
DARK_ORANGE [common]
const val DARK_ORANGE: Int
DARK_ORCHID [common]
const val DARK_ORCHID: Int
DARK_RED [common]
const val DARK_RED: Int
DARK_SALMON [common]
const val DARK_SALMON: Int
DARK_SEA_GREEN [common]
const val DARK_SEA_GREEN: Int
DARK_SLATE_BLUE [common]
const val DARK_SLATE_BLUE: Int
DARK_SLATE_GRAY [common]
const val DARK_SLATE_GRAY: Int
DARK_SLATE_GREY [common]
const val DARK_SLATE_GREY: Int
DARK_TURQUOISE [common]
const val DARK_TURQUOISE: Int
DARK_VIOLET [common]
const val DARK_VIOLET: Int
DEEP_PINK [common]
const val DEEP_PINK: Int
DEEP_SKY_BLUE [common]
const val DEEP_SKY_BLUE: Int
DIM_GRAY [common]
const val DIM_GRAY: Int
DIM_GREY [common]
const val DIM_GREY: Int
DODGER_BLUE [common]
const val DODGER_BLUE: Int
FIRE_BRICK [common]
const val FIRE_BRICK: Int
FLORAL_WHITE [common]
const val FLORAL_WHITE: Int
FOREST_GREEN [common]
const val FOREST_GREEN: Int
FUCHSIA [common]
const val FUCHSIA: Int
GAINSBORO [common]
const val GAINSBORO: Int
GHOST_WHITE [common]
const val GHOST_WHITE: Int
GOLD [common]
const val GOLD: Int
GOLDEN_ROD [common]
const val GOLDEN_ROD: Int
GRAY [common]
const val GRAY: Int
GREEN [common]
const val GREEN: Int
GREEN_YELLOW [common]
const val GREEN_YELLOW: Int
GREY [common]
const val GREY: Int
HONEY_DEW [common]
const val HONEY_DEW: Int
HOT_PINK [common]
const val HOT_PINK: Int
INDIAN_RED [common]
const val INDIAN_RED: Int
INDIGO [common]
const val INDIGO: Int
IVORY [common]
const val IVORY: Int
KHAKI [common]
const val KHAKI: Int
LAVENDER [common]
const val LAVENDER: Int
LAVENDER_BLUSH [common]
const val LAVENDER_BLUSH: Int
LAWN_GREEN [common]
const val LAWN_GREEN: Int
LEMON_CHIFFON [common]
const val LEMON_CHIFFON: Int
LIGHT_BLUE [common]
const val LIGHT_BLUE: Int
LIGHT_CORAL [common]
const val LIGHT_CORAL: Int
LIGHT_CYAN [common]
const val LIGHT_CYAN: Int
LIGHT_GOLDEN_ROD_YELLOW [common]
const val LIGHT_GOLDEN_ROD_YELLOW: Int
LIGHT_GRAY [common]
const val LIGHT_GRAY: Int
LIGHT_GREEN [common]
const val LIGHT_GREEN: Int
LIGHT_GREY [common]
const val LIGHT_GREY: Int
LIGHT_PINK [common]
const val LIGHT_PINK: Int
LIGHT_SALMON [common]
const val LIGHT_SALMON: Int
LIGHT_SEA_GREEN [common]
const val LIGHT_SEA_GREEN: Int
LIGHT_SKY_BLUE [common]
const val LIGHT_SKY_BLUE: Int
LIGHT_SLATE_GRAY [common]
const val LIGHT_SLATE_GRAY: Int
LIGHT_SLATE_GREY [common]
const val LIGHT_SLATE_GREY: Int
LIGHT_STEEL_BLUE [common]
const val LIGHT_STEEL_BLUE: Int
LIGHT_YELLOW [common]
const val LIGHT_YELLOW: Int
LIME [common]
const val LIME: Int
LIME_GREEN [common]
const val LIME_GREEN: Int
LINEN [common]
const val LINEN: Int
MAGENTA [common]
const val MAGENTA: Int
MAROON [common]
const val MAROON: Int
MEDIUM_AQUA_MARINE [common]
const val MEDIUM_AQUA_MARINE: Int
MEDIUM_BLUE [common]
const val MEDIUM_BLUE: Int
MEDIUM_ORCHID [common]
const val MEDIUM_ORCHID: Int
MEDIUM_PURPLE [common]
const val MEDIUM_PURPLE: Int
MEDIUM_SEA_GREEN [common]
const val MEDIUM_SEA_GREEN: Int
MEDIUM_SLATE_BLUE [common]
const val MEDIUM_SLATE_BLUE: Int
MEDIUM_SPRING_GREEN [common]
const val MEDIUM_SPRING_GREEN: Int
MEDIUM_TURQUOISE [common]
const val MEDIUM_TURQUOISE: Int
MEDIUM_VIOLET_RED [common]
const val MEDIUM_VIOLET_RED: Int
MIDNIGHT_BLUE [common]
const val MIDNIGHT_BLUE: Int
MINT_CREAM [common]
const val MINT_CREAM: Int
MISTY_ROSE [common]
const val MISTY_ROSE: Int
MOCCASIN [common]
const val MOCCASIN: Int
NAVAJO_WHITE [common]
const val NAVAJO_WHITE: Int
NAVY [common]
const val NAVY: Int
OLD_LACE [common]
const val OLD_LACE: Int
OLIVE [common]
const val OLIVE: Int
OLIVE_DRAB [common]
const val OLIVE_DRAB: Int
ORANGE [common]
const val ORANGE: Int
ORANGE_RED [common]
const val ORANGE_RED: Int
ORCHID [common]
const val ORCHID: Int
PALE_GOLDEN_ROD [common]
const val PALE_GOLDEN_ROD: Int
PALE_GREEN [common]
const val PALE_GREEN: Int
PALE_TURQUOISE [common]
const val PALE_TURQUOISE: Int
PALE_VIOLET_RED [common]
const val PALE_VIOLET_RED: Int
PAPAYA_WHIP [common]
const val PAPAYA_WHIP: Int
PEACH_PUFF [common]
const val PEACH_PUFF: Int
PERU [common]
const val PERU: Int
PINK [common]
const val PINK: Int
PLUM [common]
const val PLUM: Int
POWDER_BLUE [common]
const val POWDER_BLUE: Int
PURPLE [common]
const val PURPLE: Int
REBECCA_PURPLE [common]
const val REBECCA_PURPLE: Int
RED [common]
const val RED: Int
ROSY_BROWN [common]
const val ROSY_BROWN: Int
ROYAL_BLUE [common]
const val ROYAL_BLUE: Int
SADDLE_BROWN [common]
const val SADDLE_BROWN: Int
SALMON [common]
const val SALMON: Int
SANDY_BROWN [common]
const val SANDY_BROWN: Int
SEA_GREEN [common]
const val SEA_GREEN: Int
SEA_SHELL [common]
const val SEA_SHELL: Int
SIENNA [common]
const val SIENNA: Int
SILVER [common]
const val SILVER: Int
SKY_BLUE [common]
const val SKY_BLUE: Int
SLATE_BLUE [common]
const val SLATE_BLUE: Int
SLATE_GRAY [common]
const val SLATE_GRAY: Int
SLATE_GREY [common]
const val SLATE_GREY: Int
SNOW [common]
const val SNOW: Int
SPRING_GREEN [common]
const val SPRING_GREEN: Int
STEEL_BLUE [common]
const val STEEL_BLUE: Int
TAN [common]
const val TAN: Int
TEAL [common]
const val TEAL: Int
THISTLE [common]
const val THISTLE: Int
TOMATO [common]
const val TOMATO: Int
TURQUOISE [common]
const val TURQUOISE: Int
VIOLET [common]
const val VIOLET: Int
WHEAT [common]
const val WHEAT: Int
WHITE [common]
const val WHITE: Int
WHITE_SMOKE [common]
const val WHITE_SMOKE: Int
YELLOW [common]
const val YELLOW: Int
YELLOW_GREEN [common]
const val YELLOW_GREEN: Int

Functions

Name Summary
css [common]
fun css(str: String): Int
Very simple function to turn "#cc0000" into a color.
getRGBA [common]
fun getRGBA(color: Int): IntArray
Compute the R, G, B and Alpha components of a color. All values between 0..255.
rgba [common]
fun rgba(r: Int, g: Int, b: Int, a: Int = 255): Int
Builds an RGBA color value from its numerical components. All values must be between 0..255.
withAlpha [common]
fun withAlpha(color: Int, alpha: Int): Int
Returns the especified color with an added alpha channel. That means a transparent/opaque color.