#NEWLINE# def set_global_color_correction( self ) : #NEWLINE# #INDENT# 'Writes the current global color correction settings (gamma, white\n        point, linear slope, and linear cutoff) to the FadeCandy server.\n\n        ' #NEWLINE# msg = json . dumps ( { #NEWLINE# #INDENT# 'gamma' : self . gamma , #NEWLINE# 'whitepoint' : self . whitepoint , #NEWLINE# 'linearSlope' : self . linear_slope , #NEWLINE# 'linearCutoff' : self . linear_cutoff , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . send ( ( struct . pack ( '!BBHHH' , 0 , 255 , ( len ( msg ) + 4 ) , 1 , 1 ) + msg ) )