3 # format the sls file so it is compact in C
5 f = open( 'sls.lut', 'r' )
15 r.append( float( val[ 0 ] ) )
16 g.append( float( val[ 1 ] ) )
17 b.append( float( val[ 2 ] ) )
19 print "const float slsR[] ={",
27 print "%8.6f," %( x ),
31 print "const float slsG[] ={",
39 print "%8.6f," %( x ),
42 print "const float slsB[] ={",
50 print "%8.6f," %( x ),