To draw an octagon, it is useful to understand its properties.Įdge length (e) This is the length of every edge (BC, CD, etc). If we center the triangle at (0,0) and let $r=1$, we could define it using the three points $\left$ as: How does this work? Lets consider $n=3$ (thus, $i = 0, 1, 2$). Let the $i$-th point be at coordinate $(x_i, y_i)$ where Select $n$ points that are evenly spaced on its circumference. One method is: consider a circle with center (x,y) and radius $r$. If we want to draw a polygon with $n$-sides, we need to calculate its vertices (the points). This section describes: (a) how to draw a polygon using the graphics library, (b) how to figure out the basic (x,y) points of an $n$-sided regular polygon and how to rotate it, (c) the properties of the hexagon and (d) the properties of the octagon. An octagon is an 8-sided regular polygon. Return to this section for Checkpoint B, when we draw tessellations using hexagons and octagons.Ī hexagon is a 6-sided regular polygon. Your implementation of the function should match the specifications provided in this template. The functions each have docstrings written for you holding the function specifications. The template contains functions and specifications for functions you will implement. Download the graphics package, graphics.py.You will need the graphics package and the template for the project: Final Code: Due via Moodle on Tuesday, Nov.Checkpoint B: Due as a demo in any lab, drop-in tutoring or workshop before Thursday, Nov.Checkpoint A: Due as a demo in any lab, drop-in tutoring or workshop before Thursday, Nov.In contrast, the extra credit is a creative exercise, in which you can draw your own tessellations, or reproduce a tessellation you choose from existing drawings. In all samples, user input is shown in italics and underlined. You are asked to demonstrate the requested behavior and output, matching both the functions' docstrings and the sample output. It is not a creative exercise, but rather the opportunity for you to demonstrate understanding of specifications, control over the tools we've learned in the class, and being detail-oriented. Part of this project is an exercise in implementing functions to their specification, and matching target outputs. The final program is demonstrated in the short video below: There is a demo associated with each intermediate stage. This program will be built in stages: Checkpoint A, Checkpoint B, and then Final Code. The program prompts the user for what they want to draw, the size of the plane for the tiling, shows the requested drawing, lets the user click to close the window, and then repeats the process for the next drawing. These are tessellations that tile the entire plane, both right-to-left and top-to-bottom. You will write a program that draws so-called Wallpaper tessellations. Famous among these are the 17th century German mathematician/astronomer Johannes Kepler, and the 20th century Dutch artist MC Escher. Many have studied the patterns in these works. The tilings at the Alhambra palace during Spain's Moorish rule are held in especially high reguard for their beauty, diversity and complexity. Ceramic tiling feature tessellations reached an artform in Persian, Islamic and Ancient Roman architecture. lists (via polygons and text manipulation)Ī tessellation is a surface tiling of the plane using one or more geometric shapes.drawing shapes with the graphics package.You will be practicing the following concepts from prior labs: Each geometric shape that is tessellated will be written in its own function, which will be used repeatedly to fill the plane of the graphics window. In this project, you will make a program that draws some tessellations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |