Author Topic: Corona Colour Picker resets to 0,0,0 on exit or val above 0,0,15 but not between  (Read 1932 times)

2016-11-30, 16:15:23


  • Active Users
  • **
  • Posts: 362
    • View Profile
I'm trying to pick say 0,0,3 on sRGB and the values don't stick.

Selecting other combinations below also don't work.

Only when I pick a value above sRGB 0,0,15 + it works but jumps to 0,0,21 on re-open of the pallette.

Hue or saturation don't seem to affect this.

Also percent is affected and value 0-1.
« Last Edit: 2016-11-30, 17:51:35 by 3dwannab »

2016-12-07, 18:00:12
Reply #1


  • Corona Team
  • Active Users
  • ****
  • Posts: 621
  • Michal
    • View Profile
I'm afraid that we would have to file this under "we would really love to make this work, but we can't because of 3ds Max".

When the color picker dialog is launched, it receives the original color only as its 8-bit (0-255) representation in the linear color space, which is then converted internally to the sRGB in the Corona dialog. Since this mapping is non-linear, sRGB values below 15 are mapped to the linear value 0 and there is no way to reconstruct the original sRGB values from the limited information provided by Max.