#NEWLINE# def onClickColours( self , sender ) : #NEWLINE# #INDENT# self . chart . run = False #NEWLINE# self . canvas . saveContext ( ) #NEWLINE# self . canvas . clear ( ) #NEWLINE# self . canvas . translate ( 20 , 20 ) #NEWLINE# self . canvas . setFillStyle ( Color . Color ( 255 , 165 , 0 ) ) #NEWLINE# self . canvas . setStrokeStyle ( Color . Color ( '#FFA500' ) ) #NEWLINE# for i in range ( 6 ) : #NEWLINE# #INDENT# for j in range ( 6 ) : #NEWLINE# #INDENT# self . canvas . setFillStyle ( Color . Color ( int ( math . floor ( ( 255 - ( 42.5 * i ) ) ) ) , int ( math . floor ( ( 255 - ( 42.5 * j ) ) ) ) , 0 ) ) #NEWLINE# self . canvas . fillRect ( ( self * 25 ) , ( i * 25 ) , 25 , 25 ) #NEWLINE# #UNINDENT# #UNINDENT# self . canvas . translate ( 160 , 160 ) #NEWLINE# for i in range ( 6 ) : #NEWLINE# #INDENT# for j in range ( 6 ) : #NEWLINE# #INDENT# self . canvas . setStrokeStyle ( Color . Color ( 0 , int ( math . floor ( ( 255 - ( 42.5 * i ) ) ) ) , int ( math . floor ( ( 255 - ( 42.5 * j ) ) ) ) ) ) #NEWLINE# self . canvas . beginPath ( ) #NEWLINE# self . canvas . arc ( ( 12.5 + ( j * 25 ) ) , ( 12.5 + ( i * 25 ) ) , 10 , 0 , ( math . pi * 2 ) , True ) #NEWLINE# self . canvas . stroke ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . canvas . restoreContext ( )