All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ColorspaceHelper.kt Maven / Gradle / Ivy

There is a newer version: 0.4.5-alpha6
Show newest version
package org.openrndr.extra.shadestyles

import org.openrndr.color.ColorRGBa
import org.openrndr.extra.color.spaces.ColorOKLABa
import kotlin.reflect.KClass

internal fun generateColorTransform(kClass: KClass<*>): String {
    return when (kClass) {
        ColorRGBa::class -> """"""
        ColorOKLABa::class -> """gradient = linear_rgb_to_srgb(oklab_to_linear_rgb(gradient));"""
        else -> error("color space not supported $kClass")
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy