#NEWLINE# def update( self ) : #NEWLINE# #INDENT# ' Updates the pixel preview ' #NEWLINE# if isinstance ( Globals . base . win , GraphicsWindow ) : #NEWLINE# #INDENT# mouse = Globals . base . win . get_pointer ( 0 ) #NEWLINE# if mouse . get_in_window ( ) : #NEWLINE# #INDENT# pos = ( mouse . get_x ( ) , 1 , ( - mouse . get_y ( ) ) ) #NEWLINE# rel_mouse_pos = Vec2 ( mouse . get_x ( ) , ( Globals . native_resolution . y - mouse . get_y ( ) ) ) #NEWLINE# self . _node . set_pos ( pos ) #NEWLINE# self . _zoomer . set_shader_input ( 'mousePos' , self )