## Friday 16 February 2018

### Nyame Nnwu Na Me Wu

Nyame Nnwu Na Me Wu means "God never dies, therefore I cannot die". It is the symbol of God's omnipresence and the perpetual existence of man's spirit. This signifies the immortality of man's soul, believed to be a part of God. Because the soul rests with God after death, it cannot die.

We will use the 5 pixel grid to trace out this image. The image of this is shown below:

This function is a composite made up of circles and line. We need to know where the circles are in order to draw this shape.

The plan to draw this symbol is given below:

1. Lift up the pen
2. Change the pen size to 10 pixels
3. Draw the upper left circle
4. Draw the lower left circle
5. Draw the upper right circle
6. Draw the lower right circle
7. Change the pen size to 30 pixels
8. Draw a line from the upper left circle to the lower right circle
9. Draw a line from the upper right circle to the lower left circle
10. Change the pen size to 10 pixels
11. Change its colour to white
12. Draw a line from the upper left circle to the lower right circle
13. Draw a line from the upper right circle to the lower left circle

Using Turtle Graphics

We will use the template.py file and rename it to nyame.py.

The code for the first two steps is given below:

turtle.penup()
turtle.pensize(10)

To draw the upper left circle, we have to know its position. The position of the upper left circle is at (-125, 70). The circle has a radius of 50 pixels.

The code to draw the circle is as follow:

turtle.penup()
turtle.setposition(-125, 75)
turtle.pendown()
turtle.circle(50)

The position of the lower left circle is at (-125, -180). The code to draw it is given below:

turtle.penup()
turtle.setposition(-125, -175)
turtle.pendown()
turtle.circle(50)

The position of the upper right circle is at (125, 70). The code to draw it is given below:

turtle.penup()
turtle.setposition(125, 75)
turtle.pendown()
turtle.circle(50)

The position of the lower right circle is at (125, -180). The code to draw it is given below:

turtle.penup()
turtle.setposition(125, -175)
turtle.pendown()
turtle.circle(50)

The generated image is shown below:

At step 7 we lift up the pen and increase the pen size to 30 pixels. The code to do this is shown below:

turtle.penup()
turtle.pensize(30)

The coordinate of the point for the joining line between the upper left circle and the lower right circle is (-90, 90) and (90, -90).

We will use the coordinateDistance function to find the distance between the two points since we already know the the orientation between them is a factor of 45 degrees. The code to do this is written below:

pointDistance = coordinateDistance(-90, 90, 90, -90)

Now that we know the distance between the 2 points, we move the pen back to the upper left circle and set its heading to -45 degrees. The code to do this is shown below:

turtle.setposition(-90, 90)
turtle.pendown()
turtle.forward(pointDistance)

The generated image is shown below:

We lift up the pen and move it to the upper left quadrant. We set the orientation of the turtle to 225 degrees and we draw the line. The code to do this is shown below:

turtle.penup()
turtle.setposition(90, 90)
turtle.pendown()
turtle.forward(pointDistance)

The generated image is shown below:

Now we are at step 10. The code to change the pen size to 10 pixels is given below:

turtle.penup()
turtle.pensize(10)

To change the colour of the pen to white, the code to do this is shown below:

turtle.color(“white”, “white”)

Now the pen will be moved back to the position we drew from in both cases. Then we will place the pen down, move backward by 10 pixels and move forward by 10 pixels. This will help to clean out the blot lines. The code to do this is shown below:

turtle.setposition(-90, 90)
turtle.pendown()
turtle.backward(10)
turtle.forward(pointDistance + 20)

We repeat this steps again but this time we move the turtle to the upper right circle. The code for this is shown below:

turtle.penup()
turtle.setposition(90, 90)
turtle.pendown()
turtle.backward(10)
turtle.forward(pointDistance + 20)

The generated image is shown below:

Conclusion

We have finished drawing the basic shape. A technique to make it perfect would be to initially draw the circles as filled shapes.

This symbol is truly deep.