Skip to content

Instantly share code, notes, and snippets.

import kotlin.math.ln
import kotlin.math.pow
fun colorTemperatureToRGB(kelvin: Int): Triple<Float, Float, Float> {
val temp = kelvin / 100.0
val red: Double
val green: Double
val blue: Double