Tuesday, 10 April 2018

Mmara Krado


Mmara Krado is composed of two distinct words. "Mmara" means law and "Krado" means padlock. It is the symbol of the seal of law and order. It represents supreme authority and the court of justice.

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


The plan to draw this shape is given below:
  1. Lift up the pen
  2. Set the pensize to 15 pixels
  3. Move the turtle to the left position of the inner semi-circle of the upper part of the symbol
  4. Set the heading to 90 degrees
  5. Place the pen down
  6. Draw the inner semi-circle
  7. Lift up the pen
  8. Move the turtle to the left position of the middle semi-circle of the upper part of the symbol
  9. Set the heading to 90 degrees
  10. Place the pen down
  11. Draw the middle semi-circle
  12. Lift up the pen
  13. Move the turtle to the left position of the outer semi-circle of the upper part of the symbol
  14. Set the heading to 90 degrees
  15. Place the pen down
  16. Draw the outer semi-circle
  17. Lift up the pen
  18. Move the turtle to the right position of the inner semi-circle of the lower part of the symbol
  19. Set the heading to 270 degrees
  20. Place the pen down
  21. Draw the inner semi-circle
  22. Lift up the pen
  23. Move the turtle to the right position of the middle semi-circle of the lower part of the symbol
  24. Set the heading to 270 degrees
  25. Place the pen down
  26. Draw the middle semi-circle
  27. Lift up the pen
  28. Move the turtle to the right position of the outer semi-circle of the lower part of the symbol
  29. Set the heading to 270 degrees
  30. Place the pen down
  31. Draw the outer semi-circle
  32. Lift up the pen
  33. Place the pen at the location for the leftmost part of the upper part of the symbol
  34. Set the heading to 0 degrees
  35. Place the pen down
  36. Move forward to cover the leftmost part of the upper part of the symbol
  37. Lift up the pen
  38. Move the pen to the location of the innermost part of the upper part of the symbol
  39. Place the pen down
  40. Move forward to cover the right of the upper part of the symbol
  41. Lift up the pen
  42. Place the pen at the location for the leftmost part of the lower part of the symbol
  43. Place the pen down
  44. Move forward to cover the leftmost part of the lower part of the symbol
  45. Lift up the pen
  46. Move forward over the gap between the two parts
  47. Place the pen down
  48. Move forward to cover the right of the lower part of the symbol
  49. Lift up the pen
  50. Move the pen to the left  location of the middle semi-circle
  51. Set the heading to 90 degrees
  52. Move forward to cover the gap
  53. Lift up the pen
  54. Move the pen to the right location of the middle semi-circle
  55. Move forward to cover the gap
Using Turtle Graphics

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

The coordinate left position of the inner semi-circle is (25, 50). Once we know this, we can write the code for steps 1 to 6.

The code for this is shown below:

turtle.penup()
turtle.pensize(30)
turtle.setposition(25, 50)
turtle.setheading(90)
turtle.pendown()
turtle.circle(25, 180)

The generated image is shown below:


The coordinate of the middle semi-circle is (75, 50). Knowing this value, we can draw the middle semi-circle. The code for steps 7 to 11 is shown below:

turtle.penup()
turtle.setposition(75, 50)
turtle.setheading(90)
turtle.pendown()
turtle.circle(75, 180)

The generated image is shown below:


The coordinate of the outer semi-circle is (125, 50). Knowing this value, we can draw the outer semi-circle. The code for steps 12 to 16 is shown below:

turtle.penup()
turtle.setposition(125, 50)
turtle.setheading(90)
turtle.pendown()
turtle.circle(125, 180)

The generated image is shown below:


The coordinate for the inner semi-circle of the lower part of the symbol is (-25, -50). The code for steps 17 to 21 is given below:

turtle.penup()
turtle.setposition(-25, -50)
turtle.setheading(270)
turtle.pendown()
turtle.circle(25, 180)

The generated image is shown below:


The coordinate for the middle semi-circle of the lower part of the symbol is  is (-75, -50). The code for steps 22 to 26 is given below:

turtle.penup()
turtle.setposition(-75, -50)
turtle.setheading(270)
turtle.pendown()
turtle.circle(75, 180)

The generated image is shown below:


The coordinate for the middle semi-circle of the lower part of the symbol is  is (-125, -50). The code for steps 27 to 31 is shown:

turtle.penup()
turtle.setposition(-125, -50)
turtle.setheading(270)
turtle.pendown()
turtle.circle(125, 180)

The generated image is shown below:


The location of the leftmost part of the upper part of the symbol is (-125, 40). The distance between this point and the location of the innermost part of the upper part of the symbol is 100.

The code for steps 32 to 36 is shown below:

turtle.penup()
turtle.setposition(-125, 40)
turtle.setheading(0)
turtle.pendown()
turtle.forward(100)

The location of the innermost part of the upper part of the symbol is at (25, 40). The code for steps 37 to 40 is shown below:

turtle.penup()
turtle.setposition(25, 40)
turtle.pendown()
turtle.forward(100)

The generated image is shown below:


To draw the lower line, we simply repeat the steps we used to draw the upper line but now use the coordinates (-125, -40) and (25, -40).

The code to draw the lower line is shown below:

turtle.penup()
turtle.setposition(-125, -40)
turtle.setheading(0)
turtle.pendown()
turtle.forward(100)
turtle.penup()
turtle.setposition(25, -40)
turtle.pendown()
turtle.forward(100)

The generated image is shown below:


To draw the remaining lines we only need the coordinates of the left and right location of the middle semi-circle. These are (-75, -40) and (75, -40). The gap between the two lines is 80 pixels.

The code to complete the shape is shown below:

turtle.penup()
turtle.setposition(-75, -40)
turtle.setheading(90)
turtle.pendown()
turtle.forward(80)

turtle.penup()
turtle.setposition(75, -40)
turtle.setheading(90)
turtle.pendown()
turtle.forward(80)

The final symbol is shown below:


Conclusion

At the end of this section, we have managed to draw the Mmara Krado symbol.

This post is part of the series: Drawing Adinkra Symbols using Python. The goal is to draw 40 Adinkra symbols using the Python programming language.

No comments:

Post a Comment