//A2-05 - Write a function for drawing triangles and visually demonstrate its flexibility. void setup() { size (350,350); fill (255,255,0); smooth(); strokeWeight(2); framerate (50); } void draw(){ background (0); int m = millis() % 360; drawRotatedMolino (mouseX, mouseY, radians (m)); } void drawRotatedMolino (int x, int y, float m){ pushMatrix(); translate (x,y); rotate (m/1.5); drawMolino(0,0); popMatrix(); } //draw triangles void drawMolino(int x,int y){ pushMatrix(); translate (x,y); triangle (0,0,-35,-40,35,-40); rotate (90); triangle (0,0,-35,-40,35,-40); rotate (90); triangle (0,0,-35,-40,35,-40); popMatrix(); }