RGBAColor.times with float
This commit is contained in:
parent
af4b3dd726
commit
e7c0a30d2d
@ -4,7 +4,7 @@ kotlin.code.style=official
|
|||||||
specifyKotlinAsDependency=false
|
specifyKotlinAsDependency=false
|
||||||
|
|
||||||
projectGroup=ru.dbotthepony.kommons
|
projectGroup=ru.dbotthepony.kommons
|
||||||
projectVersion=1.7.0
|
projectVersion=1.7.1
|
||||||
|
|
||||||
guavaDepVersion=33.0.0
|
guavaDepVersion=33.0.0
|
||||||
gsonDepVersion=2.8.9
|
gsonDepVersion=2.8.9
|
||||||
|
@ -168,6 +168,10 @@ class RGBAColor(red: Float, green: Float, blue: Float, alpha: Float = 1f) : IStr
|
|||||||
return RGBAColor(red * other.red, green * other.green, blue * other.blue, alpha * other.alpha)
|
return RGBAColor(red * other.red, green * other.green, blue * other.blue, alpha * other.alpha)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator fun times(other: Float): RGBAColor {
|
||||||
|
return RGBAColor(red * other, green * other, blue * other, alpha)
|
||||||
|
}
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
companion object {
|
companion object {
|
||||||
private val comparator = Comparator
|
private val comparator = Comparator
|
||||||
|
Loading…
Reference in New Issue
Block a user