I'm not sure why this isn't working...but I'm trying to color this triangle's vertices red.
Graphics3D 800,600,32,2 SetBuffer BackBuffer(); camera = CreateCamera() MoveEntity camera,0,0,-5 light = CreateLight() mesh = CreateMesh() surf = CreateSurface(mesh) AddVertex surf,0,0,0 AddVertex surf,-1,0,0 AddVertex surf,0,1,0 AddTriangle surf,0,1,2 UpdateNormals mesh VertexColor surf,0,255,0,0 VertexColor surf,1,255,0,0 VertexColor surf,2,255,0,0 While Not KeyHit(1) If KeyHit(17) w=1-w : WireFrame w UpdateWorld RenderWorld Text 5,10,"Vertex0 Red:"+VertexRed(surf,0) Text 5,25,"Vertex1 Red:"+VertexRed(surf,1) Text 5,40,"Vertex2 Red:"+VertexRed(surf,2) Flip Wend End