# Difference between revisions of "Draw a Crescent"

Line 2: | Line 2: | ||

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

The parameters are: | The parameters are: | ||

− | * r1 | + | *<code>r1</code> |

:radius of the large circle | :radius of the large circle | ||

− | *r2 | + | *<code>r2</code> |

:radius of the small circle | :radius of the small circle | ||

− | *off | + | *<code>off</code> |

:the offset - the distance between the circles' centres | :the offset - the distance between the circles' centres | ||

− | + | In addition we can use variables to denote the width and height of the blue rectangle: | |

+ | *<code>blueW</code> | ||

+ | *<code>blueH</code> | ||

[[Image:flagmalaysia.png|border]] | [[Image:flagmalaysia.png|border]] | ||

<p style="font-size:smaller">Model answer has 39 lines.</p> | <p style="font-size:smaller">Model answer has 39 lines.</p> |

## Revision as of 16:01, 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

In addition we can use variables to denote the width and height of the blue rectangle:

`blueW`

`blueH`

Model answer has 39 lines.

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