We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Color change issue

Home Forums General Questions Color change issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15968
    dragosburian
    Customer

    Hello, we are using the code the ‘set color’ puzzle generates, but on some color variants we get different color shades(either less saturated or even the wrong color)- see attached image. Any idea how to get a better color match, or is this something planned for an update? Thank you!

    #15970

    Hello,

    Colors seen in an HTML-based color picker are in sRGB space while in 3D the colors are in linear space. To make them match you can use these API methods:

    convertLinearToSRGB()

    convertSRGBToLinear()

    https://www.soft8soft.com/docs/api/en/math/Color.html

    Chief 3D Verger | LinkedIn | Twitter

    #15972
    dragosburian
    Customer

    Thank you, Yuri!

    #15983
    yasse
    Customer

    @dragosburian, @Yuri. thank you for the topic, that was also my request two days ago, i’m still having issue to figure a way to implement this using javascript/ and math function. I’m just wondering if you had it implemented in a small sample file to share please ? I Will be so thankful.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.