Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualferrous

Posted 27 February 2014 - 04:57 PM

On a more generic level, floating point color values range from 0.0 to 1.0, so all thats required is a simple scaling of the ratios.  To squash anything to be between 0 and 1, just divide by the max value of that other thing.  (There is slightly more work involved if the ranges don't both start at 0.0)


#1ferrous

Posted 27 February 2014 - 04:56 PM

On a more generic level, floating point color values range from 0.0 to 1.0, so all thats required is a simple scaling of the ratios.  To squash anything to be between 0 and 1, just divide by the max value of that other thing.


PARTNERS