diff --git a/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt b/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt index e61fc91..ea50bf8 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt @@ -1,5 +1,6 @@ package ru.dbotthepony.kommons.math +import it.unimi.dsi.fastutil.chars.CharAVLTreeSet import ru.dbotthepony.kommons.util.IStruct4f import kotlin.math.roundToInt @@ -247,7 +248,7 @@ class RGBAColor(red: Float, green: Float, blue: Float, alpha: Float = 1f) : IStr return RGBAColor(r, g, b, a) } - private val hexChars = HashSet() + private val hexChars = CharAVLTreeSet() init { "#0123456789abcdefABCDEF".forEach { hexChars.add(it) }