Drawing a constellation of stars.

A constellation is a group of visible stars in the night sky that seem to form a pattern, typically representing an animal, mythological subject, or object. The origins of the earliest constellations go back to prehistory. People used them to relate stories of their beliefs, experiences, creation, or mythology. Different cultures and countries invented their own constellations.


Write a program to draw a constellation. To make this as accurate as possible. you will find it easier to plan on graph paper first. One method would be to print a picture of the constellation and then trace over it using tracing paper. Placing this tracing over graph paper would allow you to estimate coordinates of where the stars are in relation to a turtle canvas. E.g.

The Plough also known as the Big Dipper:

You could also just use trial and error.

Use this boilerplate code as a starting point:

Success Criteria

Remember to add a comment before a subprogram to explain its purpose.

Complete the subprogram called `draw_constellation` that:

  1. Draws a constellation of stars in the night sky.
  2. You can choose any constellation. Some are more challenging than others.
  3. Uses a constant identified as `star_size` to set the size of the circle or dot drawn to represent each star.
  4. Uses a constant identified as `scale` to multiply the coordinates of each star to scale up the image drawn.

Typical inputs and outputs from the program would be:

Knowledge Organiser

Use these resources as a reference to help you meet the success criteria.

Programming guide:


Check that your program outputs the expected result and has met the success criteria.

Check that you have:

  • Used comments within the code to describe the purpose of subprograms. You could also do some research and include a comment to identify the name of each star in the constellation.