7.3.1 During Init

Ten circles on random positions:

 
for(int i = 0; i < 10; i++) 
{ 
  Circle & c = circles.New(); 
  c.set(0.1, RandomF(-D.w(), D.w()), RandomF(-D.h(), D.h())); 
5}  

Circles from the left to the right side of the screen:

 
for(float i = -D.w(); i < D.w(); i += 0.2) { 
  circles.New().set(0.1, i, 0); 
}  

Squares placed evenly over the screen:

 
for(float i = -D.w(); i < D.w(); i += 0.2) 
{ 
  for(float j = -D.h();  j < D.h();  j += 0.2) 
  { 
5     rects.New().set(i - 0.05, j - 0.05, i + 0.05, j + 0.05); 
  } 
}  

Exercise
Test all of the examples above and make sure you understand every one of them. Always add code to display all elements on the screen.