@window.event
def on_draw():
	global min,max
	window.clear()
	glLoadIdentity()
	glTranslatef(0, 0, -1)
	r = range(256)
	glBegin(GL_LINE_STRIP)
	for i in r:
		x = float(i) * span / points - 0.5 * span
		y = pnoise1(x + base, octaves)
		glVertex3f(x * 2.0 / span, y, 0)
	glEnd()
dataset/ETHPy150Open caseman/noise/examples/1dnoise.py/on_draw/original