LOGO Quilt
the first hour was dedicated to coming up with designs and how they would function. I came up with a simple array of 5 choices
I made these these 4 simple designs and one “complex” design!
I decided to have these generate in a grid of 5x5 (so 25 total “patterns” in this matrix, 1250 total points). do the math if ur interested in how many permutation’s this makes and let me know! I don’t feel like it.
I then took some time to get the quilts generated. and ran into this fun error. caused by the turtle not returning to the start position after it’s done.
very visually appealing. I’d like to use that for a transition of some-sort sometime.
after that fun error I had my first quilt made–sort of
there was this error that drew the turtle moving to the corner
after a quick fix
WE GOT ROWS!!
pattern 1…DONE
on to the next
to make pattern ‘2’ I just copied the code above, and added a horizontal row to be drawn right after the vertical
don’t worry nothing went wrong
anyway once that was done
i said once that was done.
That’s now 2 down, onto the next pattern.
so i have a confession to make…I cheated.
Pattern 3 is now horizontal lines, the “dot” matrix looked too jarring, I wanted all the quilts to connect somehow and the “dot” pattern stuck out like a sore thumb. there’s now 3 out of 4 patterns done because I said so (cheated).
I put it in the corner so i could start tiling. why is this
[-523 425]
the corner?! WHY. My current hypothesis is the canvas is based off your physical screen and digital window (how big the browser is on your screen) hence
[-523 425]
I was trying to figure out a way for the next pattern to snap to the bottom left corner of the previous pattern and this happened.
very pretty not what i want.
after I was done playing with that I plugged in the code and got my quilts generated
my plan was to make a matrix of random 0-4 in each value, draw the corresponding pattern, and fill the screen but that’s as far as I got before I ran out of time. see ya next class.
here’s the code! do better, play around, have fun!
penup
to posadvance
penup
left 90
fd 50
left 90
fd 20
right 180
end
to posreset
penup
left 90
fd 50
right 90
end
to vertRow
pendown
repeat 5 [
fd 50
penup
right 90
fd 10
right 90
pendown
fd 50
penup
right 180
penup
]
end
to horizRow
right 90
pendown
fd 50
penup
left 90
fd 10
left 90
pendown
fd 50
penup
right 90
fd 10
right 90
pendown
fd 50
penup
left 90
fd 10
left 90
pendown
fd 50
penup
right 90
fd 10
right 90
pendown
fd 50
penup
left 90
fd 10
left 90
pendown
fd 50
penup
end
to vertDraw :rep
repeat :rep [vertrow]
end
to matrixDraw :rep
repeat :rep [vertrow posreset horizrow posreset]
end
setpos [-523 425]
matrixDraw 1
Drawing Moving and Seeing code
Status | In development |
Category | Other |
Author | lex |
More posts
- The Iceberg.4 days ago
Leave a comment
Log in with itch.io to leave a comment.