def viewsignal_callback(): peacevisual.beginDraw(gl.GL_LINES) for i in xrange(buffersize): peacevisual.setColor4f(random.random(),random.random(),random.random(),0.2) peacevisual.drawVertex2f(-0.9,0) peacevisual.drawVertex2f(0.9,wave[i]) peacevisual.endDraw() return 1
def callback(): peacevisual.beginDraw(gl.GL_LINES) for i in xrange(200): peacevisual.setColor4f(random.random(),random.random(),random.random(),0.2) peacevisual.drawVertex2f(-0.9,0) peacevisual.drawVertex2f(0.9,random.uniform(-1,1)) peacevisual.endDraw() return 1
def callback(): peacevisual.beginDraw(gl.GL_LINES) for i in xrange(200): peacevisual.setColor4f(random.random(), random.random(), random.random(), 0.2) peacevisual.drawVertex2f(-0.9, 0) peacevisual.drawVertex2f(0.9, random.uniform(-1, 1)) peacevisual.endDraw() return 1
def viewsignal_callback(): peacevisual.beginDraw(gl.GL_LINES) for i in xrange(buffersize): peacevisual.setColor4f(random.random(), random.random(), random.random(), 0.2) peacevisual.drawVertex2f(-0.9, 0) peacevisual.drawVertex2f(0.9, wave[i]) peacevisual.endDraw() return 1