Difference between revisions of "Draw a Crescent"

From Progzoo
Jump to navigation Jump to search
Line 3: Line 3:
 
The parameters are:
 
The parameters are:
 
* r1
 
* r1
**radius of the large circle
+
:radius of the large circle
 
*r2
 
*r2
**radius of the small circle
+
:radius of the small circle
 
*off
 
*off
**the offset - the distance between the circles' centres
+
:the offset - the distance between the circles' centres
  
 
[[Image:flagmalaysia.png|border]]
 
[[Image:flagmalaysia.png|border]]

Revision as of 16:59, 10 January 2008

You can draw a crescent as two circles. A large yellow circle that is partitally eclipsed by a smaller blue circle. The parameters are:

  • r1
radius of the large circle
  • r2
radius of the small circle
  • off
the offset - the distance between the circles' centres

Flagmalaysia.png

Model answer has 39 lines.


[Font] [Default] [Show] [Resize] [History] [Profile]