def make_offset_list(offset_list,n, template): add_offsets = template for o in add_offsets: offset_list.append(o) offset_list = [] standard_6_index_list = [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+3],#3-- [ n+3, n+3, n+2],#4-- [ n+4, n+3, n+2],#5 [ n+5, n+4, n+3]# 6 ] standard_8_index_list = [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+4],#4-- [ n+4, n+4, n+3],#5-- [ n+5, n+4, n+3],#6 [ n+6, n+5, n+4],#7 [ n+7, n+6, n+5]# 8 ] standard_10_index_list = [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+5],#4 [ n+4, n+5, n+5],#5-- [ n+5, n+5, n+4],#6-- [ n+6, n+5, n+4],#7 [ n+7, n+6, n+5],#8 [ n+8, n+7, n+6],#9 [ n+9, n+8, n+7]#10 ] make_offset_list(offset_list,0,#TRANSPARENCY [ [n,n,n] ]) make_offset_list(offset_list,1,#GRAYSCALE [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+5],#4 [ n+4, n+5, n+6],#5 [ n+5, n+6, n+7],#6 [ n+6, n+7, n+8],#7 [ n+7, n+8, n+8],#8-- [ n+8, n+8, n+7],#9-- [ n+9, n+8, n+7],#10 [n+10, n+9, n+8],#11 [n+11, n+10, n+9],#12 [n+12, n+11, n+10],#13 [n+13, n+12, n+11],#14 [n+14, n+13, n+12],#15 [n+15, n+14, n+13]# 16 ]) #METAL make_offset_list(offset_list,16, standard_8_index_list) #LIME_GREEN make_offset_list(offset_list,24, standard_8_index_list) #BEIGE make_offset_list(offset_list,32, standard_8_index_list) #DARK_PINK make_offset_list(offset_list,40, standard_10_index_list) #YELLOW make_offset_list(offset_list,50, [ [ n, 189, 188],#1 [ n+1, n+0, 188],#2 [ n+2, n+1, n+0]# 3 ]) #DARK_BEIGE make_offset_list(offset_list,53,#DARK_BEIGE [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+3],#3-- [ n+3, n+3, n+4],#4-- [ n+4, n+3, n+3],#5-- [ n+5, n+4, n+3],#6 [ n+6, n+5, n+4]# 7 ]) #YELLOW make_offset_list(offset_list,60, standard_10_index_list) #BROWN_1 make_offset_list(offset_list,70, standard_10_index_list) #CC2 make_offset_list(offset_list,80, standard_8_index_list) #DARK_GREEN make_offset_list(offset_list,88, standard_8_index_list) #PALE_GREEN make_offset_list(offset_list,96, standard_8_index_list) #BROWN_2 make_offset_list(offset_list,104, standard_8_index_list) #BROWN_3 make_offset_list(offset_list,112, standard_10_index_list) #BROWN_4 make_offset_list(offset_list,122, standard_6_index_list) #MAUVE make_offset_list(offset_list,128, standard_8_index_list) #PURPLE make_offset_list(offset_list,136, standard_8_index_list) #BLUE make_offset_list(offset_list,144, standard_10_index_list) #LIGHT_BLUE make_offset_list(offset_list,154, standard_8_index_list) #PINK make_offset_list(offset_list,162, standard_8_index_list) #LIGHT_PURPLE make_offset_list(offset_list,170, standard_8_index_list) #RED make_offset_list(offset_list,178, [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+5],#4 [ n+4, n+5, n+6],#5 [ n+5, n+6, n+7],#6 [ n+6, n+7, n+7],#7-- [ n+7, n+6, n+6],#8-- [ n+8, n+7, n+6],#9 [ n+9, n+8, n+7],#10 [n+10, n+9, n+8],#11 [n+11, n+10, n+9],#12 [n+12, n+11, n+10],#13 [n+13, n+12, n+11]#14 ]) #ORANGE make_offset_list(offset_list,192, [ [ n, 64, 63],#1 [ n+1, n+0, 64],#2 [ n+2, n+1, n+0],#3 [ n+3, n+2, n+1],#4 [ n+4, n+3, n+2],#5 [ n+5, n+4, n+3]#6 ]) #CC1 make_offset_list(offset_list,198, standard_8_index_list) #GREEN make_offset_list(offset_list,206, [ [ n, 93, 92],#1 [ n+1, n+0, 93],#2 [ n+2, n+1, n+0],#3 [ n+3, n+2, n+1]# 4 ]) #CYAN make_offset_list(offset_list,210, [ [ n, n+1, n+2],#1 [n+1, n+2, n+2],#2 [n+2, n+3, n+3],#3 [n+3, n+2, n+2],#4 [n+4, n+3, n+2]# 5 ]) #CYAN & ACT make_offset_list(offset_list,215, [ [n+0,n+0,n+0],#1 - index 215 [n+1,n+1,n+1],#2 - index 216 [n+2,n+2,n+2],#3 - index 217 [n+3,n+3,n+3],#4 - index 218 [n+4,n+4,n+4],#5 - index 219 [n+5,n+5,n+5],#6 - index 220 [n+6,n+6,n+6],#7 - index 221 [n+7,n+7,n+7],#8 - index 222 [n+8,n+8,n+8],#9 - index 223 [n+9,n+9,n+9],#10 - index 224 [n+10,n+10,n+10],#11 - index 225 [n+11,n+11,n+11],#12 - index 226 [n+12,n+12,n+12],#13 - index 227 [n+13,n+13,n+13],#14 - index 228 [n+14,n+14,n+14],#15 - index 229 [n+15,n+15,n+15],#16 - index 230 [n+16,n+16,n+16],#17 - index 231 [n+17,n+17,n+17],#18 - index 232 [n+18,n+18,n+18],#19 - index 233 [n+19,n+19,n+19],#20 - index 234 [n+20,n+20,n+20],#21 - index 235 [n+21,n+21,n+21],#22 - index 236 [n+22,n+22,n+22],#23 - index 237 [n+23,n+23,n+23],#24 - index 238 [n+24,n+24,n+24],#25 - index 239 [n+25,n+25,n+25],#26 - index 240 [n+26,n+26,n+26],#27 - index 241 [n+27,n+27,n+27],#28 - index 242 [n+28,n+28,n+28],#29 - index 243 [n+29,n+29,n+29],#30 - index 244 [n+30,n+30,n+30],#31 - index 245 [n+31,n+31,n+31],#32 - index 246 [n+32,n+32,n+32],#33 - index 247 [n+33,n+33,n+33],#34 - index 248 [n+34,n+34,n+34],#35 - index 249 [n+35,n+35,n+35],#36 - index 250 [n+36,n+36,n+36],#37 - index 251 [n+37,n+37,n+37],#38 - index 252 [n+38,n+38,n+38],#39 - index 253 [n+39,n+39,n+39],#40 - index 254 [n+40,n+40,n+40] #41 - index 255 ]) print('Offset list: ' + str(offset_list))