Quilting...


Work session 1 

most of this work was inevitably scrapped, I realized I was going about it in a weird convoluted way and had also gotten the dimensions of the quilt all wrong.

I started in my journal (pictured), did some sketches (maybe a little ambitious) of the types of patterns I could put within my quilt blocks, then did some work on how the spacing would work out.

LOGO has a bounds command that returns (xmin, xmax, ymin, ymax) which ended up being (-546.5, -368), (546.5, 368). I decided that to start each square would be about 110 by 110 and have both 10 pixels between each and a 10 pixel border on the edge. 

Next I began work on the function for creating a 8x6 grid of squares.  I attached photo showing where I left off on this process. I created a function "row" that creates a single row of 8 blocks starting in the left corner and then I function "blocks" that repeats the row function at different starting locations. 

Here's the raw code:

'''

cs 

penup

  setpos [-536.5 358]

to row

    repeat 8 [

    repeat 4 [pendown fd -110 lt 90] ; Draw a square

    penup

    rt 90 fd 135.5 lt 90 ; Move to the next position

    pendown

  ]

end

to blocks

  setpos [-536.5 358] row penup setpos [-536.5 228] pendown row penup setpos [-536.5 98] pendown row penup setpos [-536.5 -32] pendown row penup setpos [-536.5 -162] pendown row

 end

blocks

'''

Leave a comment

Log in with itch.io to leave a comment.