Course Notes

Posted on Feb 22  2020

Updated on March 17  2024


Quick Links
Intro to Programming
Python Resources
Houdini Resources


Due Dates
Submission Guidelines
Expectations


E1 - Quilt
E2 - Hurricane
E3 - Random Art
E4 - Houdini Script


Additional Examples


copyright © Deborah R. Fowler

VSFX 160 Exercise

Deborah R. Fowler



VSFX 160 - Quilting in Python

Posted pdf for VSFX 705 Spring 2013
Updated on March 17  2024


*Source from The Sampler Quilt Exercise by Julie Zelenski 2001 at nifty.stanford.edu
as well as Eric Roberts 1999, no longer online

Click here for Examples from previous quarters

Three video references exist to help you complete this exercise if you need extra help:

Goals:
This assignment will focus on the student becoming familiar with the basic programming concepts discussed in class and implemented in Python with Turtle graphics.

Requirements:

Using turtle graphics, produce a “sampler quilt” using turtle graphics and python. The quilt will consist of five blocks, each with its own theme. Each block is repeated five times and all are arranged to form the entire quilt.

Your quilt should include five unique patterns (suggestions - flowers, simple or complex geometric shapes – see suggestions below), This quarter you will be required to integrate your initials into one of the patterns.

Start with an arrangement with each pattern in a column. 5 X 5
Next try arranging them in a table 5 X 7 that is cyclic (modulus or “remainder operator" %) will come in handy here.

4 0 1 2 3 4 0
3 4 0 1 2 3 4
2 3 4 0 1 2 3
1 2 3 4 0 1 2
0 1 2 3 4 0 1

Define the quiltRows, quiltColumns, blockSize so that the user can easily change these along with the size of each block (assume the blocks are square)

[Recursion in a block is NOT required for this assignment and is only advised once you have a version of the quilt working without.]

Considerations:

Using a nested loop will make this exercise easier. This is also an exercise in going through the submission process of handing in exercises.

Work incrementally – build one block at a time – strongly advised to use functions. Break this assignment down into individual pieces and test each individual part in isolation.
Submission guidelines:

The project will be submitted to your dropbox in a folder (also called a directory) named:

S24_V160_E1_LastnameFirstname_Title/

The directory should contain the following:

Remember to test your file before handing it in!

Grading:

Clean efficient code and a cool visual are the emphasis.
Meeting the minimum specifications, 80%.  To move your grade above 80% go beyond the specifications, demonstrate exploration and understanding. Consider using color, filled shapes, and so on – but first get the basic assignment working.

Be creative, have fun.

See previous student examples here

There are good examples in the documentation on turtle graphics as well as a few others: