From: Jon S. <sc...@so...> - 2002-02-05 03:08:06
|
This works... >>> c =curve( pos=[(0,0,0), (1,0,0)], color=(1,0,0) ) #red points >>> c.append( pos=(0,1,0), color=(0,0,1)) # add blue point (color interpolates smoothly from red to blue But change "curve" to "convex" ... >>> c =convex( pos=[(0,0,0), (1,0,0)], color=(1,0,0) ) #red points >>> c.append( pos=(0,1,0), color=(0,0,1)) # add blue point Traceback (most recent call last): File "<pyshell#4>", line 1, in ? c.append( pos=(0,1,0), color=(0,0,1)) # add blue point TypeError: CXX: type error. ...and we crash. Is there a way to produce color gradients over a surface? (thanks) Jonathan Schull Sc...@di... |