10 # We want 0 at light=0 and 255 at light=LIGHT_MAX
14 for i in range(1,LIGHT_MAX+1):
15 L.append(int(round(255.0 * 0.69 ** (i-1))))
20 stdout.write(str(i)+",\n")
25 The first value should be 0, the last value should be 255.
27 /*u8 light_decode_table[LIGHT_MAX+1] =
50 from sys import stdout
52 # We want 0 at light=0 and 255 at light=LIGHT_MAX
58 for i in range(1,LIGHT_MAX+1):
59 L.append(int(round(255.0 * FACTOR ** (i-1))))
64 stdout.write(str(i)+",\n")
66 u8 light_decode_table[LIGHT_MAX+1] =