Companion

object Companion

Functions

create
Link copied to clipboard
common
fun create(red: Int, green: Int, blue: Int, alpha: Int = 255): TileColor
Creates a new TileColor.
defaultAlpha
Link copied to clipboard
common
fun defaultAlpha(): Int
defaultBackgroundColor
Link copied to clipboard
common
fun defaultBackgroundColor(): ANSITileColor
The default background color is BLACK.
defaultFactor
Link copied to clipboard
common
fun defaultFactor(): Double
defaultForegroundColor
Link copied to clipboard
common
fun defaultForegroundColor(): ANSITileColor
The default foreground color is WHITE.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
fromString
Link copied to clipboard
common
fun fromString(value: String): TileColor
Parses a string into a color.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String
transparent
Link copied to clipboard
common
fun transparent(): TileColor
Shorthand for a TileColor which is fully transparent.

Properties

DEFAULT_ALPHA
Link copied to clipboard
common
const val DEFAULT_ALPHA: Int = 255
DEFAULT_FACTOR
Link copied to clipboard
common
const val DEFAULT_FACTOR: Double = 0.7

Sources

(source)
Link copied to clipboard