gw.setTransform(Matrix3 1 )
gw.startTriangles()
gw.triangle #([ 0 , 0 , 0 ], [ 50 , 0 , 0 ], [ 50 , 50 , 0 ]) #(red,red,red)
gw.triangle #([ 0 , 0 , 0 ], [ 50 , 50 , 0 ], [ 0 , 50 , 0 ]) #(green,green,green)
gw.endTriangles()
gw.enlargeUpdateRect #whole
gw.updateScreen()