#NEWLINE# def create_pil_palette( ) : #NEWLINE# #INDENT# pps = create_palette ( ) #NEWLINE# pps = [ pps [ 15 ] , pps [ 2 ] , pps [ 32 ] , pps [ 41 ] ] #NEWLINE# palette = [ ] #NEWLINE# for p in pps : #NEWLINE# #INDENT# palette . extend ( p ) #NEWLINE# #UNINDENT# while ( len ( palette ) < ( 256 * 3 ) ) : #NEWLINE# #INDENT# palette . extend ( pps [ 3 ] ) #NEWLINE# #UNINDENT# return palette