Package org.pushingpixels.aurora.common

Types

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

Functions

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

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

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

Returns a darker version of this color.

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.

Link copied to clipboard
fun HSBtoRGB(from: FloatArray): Color
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.

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

Returns the inverted version of this color.

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

Returns a lighter version of this color.

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

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

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

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

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

Returns saturated version of this color.

Properties

Link copied to clipboard
val Color.colorBrightness: Float

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

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