mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-10-01 14:09:38 +00:00
17 lines
365 B
Kotlin
17 lines
365 B
Kotlin
package cloud.kubelet.foundation.gjallarhorn.util
|
|
|
|
import java.awt.Color
|
|
|
|
data class ColorGradientPoint(
|
|
val r: Float,
|
|
val g: Float,
|
|
val b: Float,
|
|
val value: Float
|
|
) {
|
|
fun toColor() = Color(
|
|
FloatClamp.ColorRgbComponent.convert(r).toInt(),
|
|
FloatClamp.ColorRgbComponent.convert(g).toInt(),
|
|
FloatClamp.ColorRgbComponent.convert(b).toInt()
|
|
)
|
|
}
|