Draw a set of lines and color them using a gradient
1 lines=gfx.PrimList(
"lines")
4 g.SetColorAt(0, gfx.Color(1.0, 0.0, 0.0, 1.0))
5 g.SetColorAt(0.5, gfx.Color(0.0, 1.0, 0.0, 1.0))
6 g.SetColorAt(1.0, gfx.Color(0.0, 0.0, 1.0, 1.0))
9 c=g.GetColorAt(0.001*i)