Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[orx-gui] gui.add(linearGradient) fails when using OKLab colors #264

Open
hamoid opened this issue Aug 20, 2022 · 1 comment
Open

[orx-gui] gui.add(linearGradient) fails when using OKLab colors #264

hamoid opened this issue Aug 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@hamoid
Copy link
Member

hamoid commented Aug 20, 2022

Operating System

Linux

OPENRNDR version

from git

ORX version

from git

Java version (if applicable)

No response

Describe the bug

↑ class org.openrndr.extra.color.spaces.ColorOKLABa cannot be cast to class org.openrndr.color.ColorRGBa (org.openrndr.extra.color.spaces.ColorOKLABa and org.openrndr.color.ColorRGBa are in unnamed module of loader 'app') (ClassCastException) 

Steps to reproduce the bug

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.color.spaces.toOKLABa
import org.openrndr.extra.gui.GUI
import org.openrndr.extra.shadestyles.LinearGradientOKLab

fun main() = application {
    program {
        val g = LinearGradientOKLab(
            ColorRGBa.RED.toOKLABa(),
            ColorRGBa.GREEN.toOKLABa()
        )

        extend(GUI()) { add(g, "linear gradient") }
        extend {}
    }
}
@hamoid hamoid added the bug Something isn't working label Aug 20, 2022
@hamoid
Copy link
Member Author

hamoid commented Dec 7, 2023

Issue still present on 0b87c96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant