Make your own free website on Tripod.com
\n") myQuilt.document.write("\n") } else { myQuilt.document.write("\n") myQuilt.document.write("\nQuilt Designer\n\n

Quilt designed by ") myQuilt.document.write(designer) myQuilt.document.write("
") myQuilt.document.write("

\n
") } } //end quilt page function endQuilt() { myQuilt.document.write("
\n\n") myQuilt.document.close(); } //Begin table row function beginRow(){ myQuilt.document.write('\n') } //End table row function endRow() { myQuilt.document.write('\n') } //draw cell function drawCell(patch) { myQuilt.document.write("\t\n") } //draw top/bottom borders function drawBorderTB(border) { var borderCells = qWidth * 3; for (var b=0; b\n") } } //draw left/right borders function drawBorderLR(border) { myQuilt.document.write("\t\n") } //draw corner graphic function drawCorner(corner) { myQuilt.document.write("\t\n") } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Build the quilt based on user input function quilt() { //set variables based on user input qHeight=document.forms[0].elements[0].selectedIndex+1; qWidth=document.forms[0].elements[1].selectedIndex+1; designer=document.forms[0].elements[2].value; //reset quilt height/width/designer to default document.quiltSize.quiltHeight.selectedIndex=1 document.quiltSize.quiltWidth.selectedIndex=1 document.quiltSize.by.value="" //begin building quilt beginQuilt(); //top border beginRow(); drawCorner(thisCorner); drawBorderTB(thisBorderTB); drawCorner(thisCorner); endRow(); //loop "h" number of times to achive height for (var h = 0; h < qHeight; ++h) { //display top row beginRow(); drawBorderLR(thisBorderLR); //loop "w" number of times to achive width for (var w = 0; w < qWidth; ++w) { drawCell(thisPatch[0]); drawCell(thisPatch[1]); drawCell(thisPatch[2]); } drawBorderLR(thisBorderLR); endRow(); //display middle row beginRow(); drawBorderLR(thisBorderLR); //loop "w" number of times to achive width for (var w = 0; w < qWidth; ++w) { drawCell(thisPatch[3]); drawCell(thisPatch[4]); drawCell(thisPatch[5]); } drawBorderLR(thisBorderLR); endRow(); //display bottom row beginRow(); drawBorderLR(thisBorderLR); //loop "w" number of times to achive width for (var w = 0; w < qWidth; ++w) { drawCell(thisPatch[6]); drawCell(thisPatch[7]); drawCell(thisPatch[8]); } drawBorderLR(thisBorderLR); endRow(); } //generate bottom border beginRow(); drawCorner(thisCorner); drawBorderTB(thisBorderTB); drawCorner(thisCorner); endRow(); endQuilt(); } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //Display random patches function randomPatch() { for (i=0; i < cellCount; i++) { var ranPatch = (Math.floor(Math.random()*patchCount)); thisPatch[i]= ranPatch; document.images[i].src = selPatch[ranPatch]; } } // -->
Patchwork (9) ver 2.13
(8/7/98 - www.synergyteam.com)
Step 1. Pattern Design
Repeatedly click your mouse on each of the
9 patches below (or select random patches)
until you create a design you like.
Note: There are 11 patches to choose from in each block area.


Display current patch sequence



A

B

C

D

E

F

G

H

I

Step 2. Repeatedly click your mouse on each of the 3 border
patches until you create a border design you like.
Select Top/Bottom Border:
Select Left/Right Border:
Select Corner Border:
Step 3. Select Quilt Dimensions     Height:       Width:

Step 4. Your name:
Step 5. Display Quilt
© Copyright, 1998. Synergyteam, Coppell, Texas.