PDA

View Full Version : how to set the lightness of the dot


aaaa
11-17-2014, 01:28 AM
Hi, I have a problem in setting the lightness of the dot. the code is below:

viz.startLayer(viz.POINTS)
viz.vertex(0,0,1)
viz.vertex(0,0.5,1)
aa=viz.endLayer()


I don't know how to set the lightness of the point.

Jeff
11-17-2014, 05:36 PM
You can change the vertex color of the points:

import viz
viz.go()

viz.startLayer(viz.POINTS)
viz.vertexColor(0.5,0.5,0.5)
viz.vertex(0,0,1)
viz.vertex(0,0.5,1)
aa=viz.endLayer(pos=[0,1.8,3])