diff --git a/gradle.properties b/gradle.properties index d9c01c5..dabc70e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ kotlin.code.style=official specifyKotlinAsDependency=false projectGroup=ru.dbotthepony.kommons -projectVersion=1.7.0 +projectVersion=1.7.1 guavaDepVersion=33.0.0 gsonDepVersion=2.8.9 diff --git a/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt b/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt index 1386073..7e97908 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt @@ -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) } + operator fun times(other: Float): RGBAColor { + return RGBAColor(red * other, green * other, blue * other, alpha) + } + @Suppress("unused") companion object { private val comparator = Comparator