Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    How to convert from sRGB to FUZE Linear RGB

    Advanced
    5
    7
    881
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • n_yohan
      n_yohan last edited by

      For anyone wanting to know how to convert from sRGB to FUZE Linear RGB
      First get the sRGB values and calculate each part separately.

      So if the R value is 200 we first convert to the Fuze 0-1 scale by dividing 200 by 255

      200/255 = 0.784313 (rounded)

      Next we have to see if the number we got is less than 0.04045. If it is we divide our number by 12.92

      In our case the number is not less than 0.04045 so we do the other calculation.
      First we add 0.055

      0.784313 + 0.055 = 0. 839313

      Then we divide by 1.055

      1. 839313 / 1.055 = 0.795557 (rounded)

      Lastly we take our number to the power of 2.4 x to the power of y

      0.795557 to the power of 2.4 = 0.577579

      (the forum won't let me use superscript so imagine 0.795557 superscript 2.4, it's the X superscript Y button on a calculator)

      After repeating the process for G and B you will have the FUZE linear RGB value.

      The calculation used are from the sRGB transform library.

      1 Reply Last reply Reply Quote 6
      • LinkCraft
        LinkCraft F last edited by

        Someone should program a calculator for this

        1 Reply Last reply Reply Quote 0
        • n_yohan
          n_yohan last edited by

          I found an online calculator http://davengrace.com/cgi-bin/cspace.pl. If you put the sRGB values on the first line, the third line (sRGB [0,1]) will have the linear RGB values. The second line is the non-linear (just dividing by 255) but you don't want that.

          vinicity 1 Reply Last reply Reply Quote 1
          • pianofire
            pianofire Fuze Team last edited by

            Of course you could just write a function in Fuze to do it

            1 Reply Last reply Reply Quote 1
            • Martin
              Martin Fuze Team last edited by

              NXBXA8ND9W

              Wrote that months ago when I first discovered that Fuze RGB was actually an sRGB colour space and not really RGB. Should have made more noise about it then by the looks of it.

              It includes functions to go in whichever direction you choose and displays the values of all Fuze Colours so you can use them in or out of Fuze.

              1 Reply Last reply Reply Quote 5
              • Martin
                Martin Fuze Team last edited by Martin

                In Fuze...

                function Fuze2RGB(x)
                return int(pow(x, 1 / 2.2) * 255)
                
                function RGB2Fuze(x)
                return pow(1 / 255 * x, 2.2)
                
                1 Reply Last reply Reply Quote 4
                • vinicity
                  vinicity F @n_yohan last edited by

                  @n_yohan said in How to convert from sRGB to FUZE Linear RGB:

                  I found an online calculator http://davengrace.com/cgi-bin/cspace.pl. If you put the sRGB values on the first line, the third line (sRGB [0,1]) will have the linear RGB values. The second line is the non-linear (just dividing by 255) but you don't want that.

                  In case anyone else needs this, this link works better than the one posted above:
                  http://davengrace.com/dave/cspace/

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post