255.0 * each element for each color will give you what those 0-255 rgb values are, but not sure where you got your initial percentages versus values came from. 25% of 1.0 would be (.25, .25, .25)
On Fri, Jan 24, 2014 at 6:41 AM, Daz <[email protected]> wrote: > Heya > > I'm trying to remap 3 dimensional vector to values of 0-255 > > Can some1 suggest what algorithm I need to use to convert those vector > values to more human rgb values? > > I know that > > 0% = (0.0, 0.0, 0.0) - black > 25% = (0.044156629592180252, 0.044154495000839233, 0.044151946902275085) > 50% = (0.18418028950691223, 0.18418741226196289, 0.18419596552848816) > 75% = (0.48274806141853333, 0.48278585076332092, 0.48283094167709351) > 100% = (0.99991166591644287, 1.0000128746032715, 1.0001327991485596) - > white > > Thanks, bye. > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/fd6b9726-9f39-44dc-84b7-7569856e6522%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLfG0FspXVHZ%2Bgse1wzb0rANa6SNAjQHdWW9MjXaURLhg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
