//mondrian lies in bottom right corner (90 10)
forever { paper 15 pen 100 //horizontal lines line 25 98 60 98 line 0 line 0 50 line //vertical lines repeat a 5 { line a 50 a } line line 25 line 60 line 97 3 97 98 //blue square repeat b 0 25 { pen line b } //yellow square repeat c 97 100 { pen 40 line c } //red square repeat d { pen 90 line d 0 d 3 } } |
1e) make a line that responds to the mouse. | ![]() click to see movie |
full code |