def drawLinkColorBar(self, x = 50, y = 90, w = 20, h = 120): """Draw the color bar for links.""" link_bar = [] for i in range(11): link_bar.append(self.map_link_color(float(i)/10.0)) self.textdraws.append(drawGLColorBar(link_bar, x, y, w, h, "L", self.height()))
def drawNodeColorBar(self, x = 20, y = 90, w = 20, h = 120): """Draw the color bar for nodes.""" node_bar = [] for i in range(11): node_bar.append(self.map_node_color(float(i)/10.0)) self.textdraws.append(drawGLColorBar(node_bar, x, y, w, h, "N", self.height()))
def drawLinkColorBar(self, x=50, y=90, w=20, h=120): """Draw the color bar for links.""" link_bar = [] for i in range(11): link_bar.append(self.map_link_color(float(i) / 10.0)) self.textdraws.append( drawGLColorBar(link_bar, x, y, w, h, "L", self.height()))
def drawNodeColorBar(self, x=20, y=90, w=20, h=120): """Draw the color bar for nodes.""" node_bar = [] for i in range(11): node_bar.append(self.map_node_color(float(i) / 10.0)) self.textdraws.append( drawGLColorBar(node_bar, x, y, w, h, "N", self.height()))