Package org.pushingpixels.aurora.common

Types

AuroraInternalApi
Link copied to clipboard
annotation class AuroraInternalApi
AuroraPopupManager
Link copied to clipboard
object AuroraPopupManager
HashMapKey
Link copied to clipboard
class HashMapKey(keyFields: Any)

Functions

byAlpha
Link copied to clipboard
fun Color.byAlpha(alpha: Float): Color

Returns the version of this color based on the specified alpha.

darker
Link copied to clipboard
fun Color.darker(diff: Float): Color

Returns a darker version of this color.

getColorBrightness
Link copied to clipboard
fun getColorBrightness(r: Float, g: Float, b: Float): Float

Returns the brightness of the specified color values in 0.0-1.0 range.

HSBtoRGB
Link copied to clipboard
fun HSBtoRGB(from: FloatArray): Color
interpolateTowards
Link copied to clipboard
fun Color.interpolateTowards(other: Color, thisLikeness: Float): Color

Interpolates this color towards the other color. The closer thisLikeness is to 0.0, the closer the resulting color will be to the other color.

interpolateTowardsAsRGB
Link copied to clipboard
fun Color.interpolateTowardsAsRGB(other: Color, thisLikeness: Float): Int
inverted
Link copied to clipboard
fun Color.inverted(): Color

Returns the inverted version of this color.

lighter
Link copied to clipboard
fun Color.lighter(diff: Float): Color

Returns a lighter version of this color.

RGBtoHSB
Link copied to clipboard
fun RGBtoHSB(from: Color): FloatArray
fun RGBtoHSB(fromArgb: Int): FloatArray
fun RGBtoHSB(r: Float, g: Float, b: Float): FloatArray
withAlpha
Link copied to clipboard
fun Color.withAlpha(alpha: Float): Color

Returns the version of this color based on the specified alpha.

withBrightness
Link copied to clipboard
fun Color.withBrightness(brightnessSource: Color): Color
fun Color.withBrightness(brightnessFactor: Float): Color
withHueShift
Link copied to clipboard
fun Color.withHueShift(hueShift: Float): Color

Returns hue-shifted (in HSB space) version of this color.

withSaturation
Link copied to clipboard
fun Color.withSaturation(factor: Float): Color

Returns saturated version of this color.

Properties

colorBrightness
Link copied to clipboard
val Color.colorBrightness: Float

Returns the brightness of this color in 0.0-1.0 range ignoring the alpha.

colorStrength
Link copied to clipboard
val Color.colorStrength: Float
hexadecimal
Link copied to clipboard
val Color.hexadecimal: String