parameters: (self, is_update=True)
docstring: Update color, assume that there have not been structural changes of the arrays
docstring_summary: Update color, assume that there have not been structural changes of the arrays
docstring_tokens: Update color assume that there have not been structural changes of the arrays
function: def update(self, is_update=True):
          """
          Update color, assume that there have not been structural changes of the arrays
          """
          # assumes that edges have been set in set_edges
          # print 'Edgedrawing.update'
          #edgeinds = self._edges.get_inds()
          n = len(self)
          ids = self.get_ids()
  
          self.colors_fill.value[:] = self._routes.colors[ids]
          #self.colors_fill.value[:] = np.ones((n,1),np.float32)*self.color_default.value
          self.colors_fill_highl.value[:] = self._get_colors_highl(self.colors_fill.value)
  
          if is_update:
              self._update_vertexvbo()
              self._update_colorvbo()
function_tokens: def update ( self , is_update = True ) : # assumes that edges have been set in set_edges # print 'Edgedrawing.update' #edgeinds = self._edges.get_inds() n = len ( self ) ids = self . get_ids ( ) self . colors_fill . value [ : ] = self . _routes . colors [ ids ] #self.colors_fill.value[:] = np.ones((n,1),np.float32)*self.color_default.value self . colors_fill_highl . value [ : ] = self . _get_colors_highl ( self . colors_fill . value ) if is_update : self . _update_vertexvbo ( ) self . _update_colorvbo ( )