User:NaisyuanYE/Assignment 1

From Graphic Design Arnhem
Jump to navigation Jump to search

// TRIANGLES!!!!!

 1 println("hello world");
 2 size(800, 600);
 3 background(255, 0, 0);
 4 for(int i = 0;i< 900;i = i + 100)
 5 
 6 {
 7   for(int j = 0;j< 700;j = j + 100)
 8   {
 9     println(i);
10     fill(160, 240, 1000);
11     triangle( i+100, j, i, j+100, i+100, j+100);
12   }
13 }