1 2 3 4 5 6 7 8 9 10 11 12 | // Tri3d(x1,y1,x2,y2,color) function tri3d(x1,y1,x2,y2,x3,y3,x4,y4,c){ uart(128,8,1,x1,y1,x2,y2,c); uart(128,8,1,x2,y2,x3,y3,c); uart(128,8,1,x1,y1,x3,y3,c); uart(128,8,1,x1,y1,x4,y4,c); uart(128,8,1,x2,y2,x4,y4,c); uart(128,8,1,x3,y3,x4,y4,c); } // Sample Code uart( "\nPC CLEAR 00\n" ); tri3d(0,10,48,35,2,44,68,7,1); |