ANSITileColor

enum ANSITileColor : Enum<ANSITileColor> , TileColor

Default ANSI colors.

Entries

RED
Link copied to clipboard
common
RED(128, 0, 0, TileColor.defaultAlpha())
GREEN
Link copied to clipboard
common
GREEN(0, 128, 0, TileColor.defaultAlpha())
YELLOW
Link copied to clipboard
common
YELLOW(128, 128, 0, TileColor.defaultAlpha())
BLUE
Link copied to clipboard
common
BLUE(0, 0, 128, TileColor.defaultAlpha())
MAGENTA
Link copied to clipboard
common
MAGENTA(128, 0, 128, TileColor.defaultAlpha())
CYAN
Link copied to clipboard
common
CYAN(0, 128, 128, TileColor.defaultAlpha())
WHITE
Link copied to clipboard
common
WHITE(192, 192, 192, TileColor.defaultAlpha())
BLACK
Link copied to clipboard
common
BLACK(0, 0, 0, TileColor.defaultAlpha())
GRAY
Link copied to clipboard
common
GRAY(128, 128, 128, TileColor.defaultAlpha())
BRIGHT_RED
Link copied to clipboard
common
BRIGHT_RED(255, 0, 0, TileColor.defaultAlpha())
BRIGHT_GREEN
Link copied to clipboard
common
BRIGHT_GREEN(0, 255, 0, TileColor.defaultAlpha())
BRIGHT_YELLOW
Link copied to clipboard
common
BRIGHT_YELLOW(255, 255, 0, TileColor.defaultAlpha())
BRIGHT_BLUE
Link copied to clipboard
common
BRIGHT_BLUE(0, 0, 255, TileColor.defaultAlpha())
BRIGHT_MAGENTA
Link copied to clipboard
common
BRIGHT_MAGENTA(255, 0, 255, TileColor.defaultAlpha())
BRIGHT_CYAN
Link copied to clipboard
common
BRIGHT_CYAN(0, 255, 255, TileColor.defaultAlpha())
BRIGHT_WHITE
Link copied to clipboard
common
BRIGHT_WHITE(255, 255, 255, TileColor.defaultAlpha())

Functions

compareTo
Link copied to clipboard
common
operator override fun compareTo(other: ANSITileColor): Int
darkenByPercent
Link copied to clipboard
common
open override fun darkenByPercent(percentage: Double): TileColor
Returns a new TileColor which is darkened by the given percentage.
desaturate
Link copied to clipboard
common
open fun desaturate(): TileColor
Returns a new TileColor which is desturated by the DEFAULT_FACTOR (.7).
open override fun desaturate(factor: Double): TileColor
Returns a new TileColor which is desaturated by factor.
equals
Link copied to clipboard
common
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
override fun hashCode(): Int
interpolateTo
Link copied to clipboard
common
open override fun interpolateTo(other: TileColor): ColorInterpolator
Creates a new ColorInterpolator with the receiver color as low color and the other color as high color.
invert
Link copied to clipboard
common
open override fun invert(): TileColor
Returns a new TileColor which is the inversion of this one.
lightenByPercent
Link copied to clipboard
common
open override fun lightenByPercent(percentage: Double): TileColor
Returns a new TileColor which is lightened by the given percentage.
shade
Link copied to clipboard
common
open fun shade(): TileColor
Returns a new TileColor which is shaded by the DEFAULT_FACTOR (.7).
open override fun shade(factor: Double): TileColor
Returns a new TileColor which is shaded by factor.
tint
Link copied to clipboard
common
open fun tint(): TileColor
Returns a new TileColor which is tinted by the DEFAULT_FACTOR (.7).
open override fun tint(factor: Double): TileColor
Returns a new TileColor which is tinted by factor.
tone
Link copied to clipboard
common
open fun tone(): TileColor
Returns a new TileColor which is toned by the DEFAULT_FACTOR (.7).
open override fun tone(factor: Double): TileColor
Returns a new TileColor which is toned by factor.
toString
Link copied to clipboard
common
open override fun toString(): String
withAlpha
Link copied to clipboard
common
open override fun withAlpha(alpha: Int): TileColor
Creates a copy of this TileColor with the given alpha.
withBlue
Link copied to clipboard
common
open override fun withBlue(blue: Int): TileColor
Creates a copy of this TileColor with the given blue.
withGreen
Link copied to clipboard
common
open override fun withGreen(green: Int): TileColor
Creates a copy of this TileColor with the given green.
withRed
Link copied to clipboard
common
open override fun withRed(red: Int): TileColor
Creates a copy of this TileColor with the given red.

Properties

alpha
Link copied to clipboard
common
override val alpha: Int
blue
Link copied to clipboard
common
override val blue: Int
cacheKey
Link copied to clipboard
common
open override val cacheKey: String
A unique and immutable cache key for this object.
green
Link copied to clipboard
common
override val green: Int
isOpaque
Link copied to clipboard
common
open val isOpaque: Boolean
name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int
red
Link copied to clipboard
common
override val red: Int

Sources

(source)
Link copied to clipboard