Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. module triangle (x,y,z,rz,kolor,sx,sy,sz){
  2. scale([sx,sy,sz])
  3. color(kolor)
  4. translate ([x,y,z])
  5. rotate ([0,0,rz])
  6. linear_extrude (height=5)
  7. polygon ([[0,20],[20,-10],[-20,-10]]);
  8. }
  9.  
  10. triangle (0,0,0,0,"red",1,1,1);
  11. triangle (-2,15,2.5,10,"blue",0.8,0.8,0.8);
  12. triangle (-8,30,5,20,"brown",0.7,0.7,0.7);
  13. triangle (-15,50,7.5,30,"green",0.6,0.6,0.6);
  14. triangle (-25,70,12.5,40,"pink",0.5,0.5,0.5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement